-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to create a Provider using a specific store key #695
Conversation
Hmm. Just from a maintenance standpoint, does Other than that, this seems reasonable at first glance in terms of concept and implementation. |
Sure. I changed it. Let me know if you'd like something else. |
src/components/Provider.js
Outdated
Provider.propTypes = { | ||
store: storeShape.isRequired, | ||
children: PropTypes.element.isRequired, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: no semicolons
I assume if we squash this, it wouldn't reflect the back-and-forth between files, right? |
It would reflect this: https://github.com/reactjs/react-redux/pull/695/files |
No need, we can squash on GitHub now. I do it every time, since it provides a nice link back to this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Anyone else want to second?
👍 Hit it! |
* Add a way to create a Provider using a specific store key * Move createProvider inside Provider.js * Remove semicolons
* Add a way to create a Provider using a specific store key * Move createProvider inside Provider.js * Remove semicolons
This is related and fix #693. It offers an easy way to create a custom provider using a specific store key.
connect
already supported that feature, but theProvider
was missing it.