-
-
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
connectComponent, attaching prop configuration to component #185
Conversation
5770eaa
to
25f97c7
Compare
* master: rename smart/dumb to presentational/container Add jsnext:main Remove src from npmignore
What if instead we checked the return type of |
Oh, good shout. I don't think you are missing anything. I just hacked together a quick test for mapStateToProps, and it seems like it would be a reasonable solution. |
@tgriesser Would you be interested in implementing #185 (comment) as an alternative approach? Would it solve your problem? |
I’ll close this PR because I don’t plan to merge it as is but I’m happy to consider merging #185 (comment) which should solve the same problem. |
Alternate approach to #179 for consideration, adds a
connectFactory
connectComponent
whichconnect
will wrap, allowing for unique selectors per-component instance. Existing use of connect will work the same as it does currently.