Skip to content

[RED-18] Export buildHooks function #3450

@lucashm

Description

@lucashm

I have a specific use case, where I'm using redux-toolkit through module federation, so all my micro-frontends can access it. The problem is that every micro-frontend has its own React instance, and the exported hooks from the ReactModule won't work as we can't call one Hook from different React versions.

My current solution is basically copying and pasting the code from the buildQueryHooks and buildMutationHooks functions, but it would make everything way cleaner if the function buildHooks were available!

Thanks for reading

Edit: Already created a PR since it's a really small change: #3451

RED-18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions