-
Notifications
You must be signed in to change notification settings - Fork 114
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
Do not pass flux prop to components wrapped with connect
#251
Comments
How would one get access to the flux instance in the base component then? Sometimes you want it and you've removed the Also the comment in |
(Actually reading the code I'm not sure I see where flux is injected into |
@bdowning You're right about the comment, I'll get that fixed! As you said, the solution is to pull it from As for |
But how does |
@bdowning I noticed this because I have a connected component as a root component - which receives the |
But then it also doesn't get wrapped statics currently either, so it's hardly transparent. Personally I'm not sold on the use-HoCs-for-all-the-things mentality and am sort of sad that mixins have fallen out of favor (and fluxMixin in particular has gone away, even though createClass has not) but I acknowledge that I seem to be in the minority here. (Then again I like Common Lisp and CLOS, who's predecessor arguably created the concept in the first place! :). Certainly, though, working with react-router seemed to be a lot easier and more consistent with mixins than with HoCs. But I can always maintain my own fluxMixin if I get desperate. |
We removed the flux prop for the
FluxComponent
butconnect
still passes it down. We should remove it.The text was updated successfully, but these errors were encountered: