-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Description
Do you want to request a feature or report a bug?
Feature.
What is the current behavior?
You cannot override the context to use for the useStore
hook in the same way you can for Provider
and connect
, at least as far as I can tell.
What is the expected behavior?
I would like this feature as I need to override set the context to work around an issue with using lerna
monorepo (the synlinked packages get their own copy of react-redux
and consequently a different context instance).
I propose to add a context argument to useStore
and pass it through to useReduxContext
and use it if provided or fallback to the existing imported ReactReduxcContext
.
I'm happy to make the change and I may even create a PR anyway.
Metadata
Metadata
Assignees
Labels
No labels