You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spent a good hour trying to figure this out until I found #61. flux it is not available on the react context unless you explicitly include it in contextTypes:
contextTypes: {flux: React.PropTypes.any}
this.context.flux is undefined in a react component until you add the contextType. Just adding a note to that effect to the docs would be enormously helpful to beginners.
The text was updated successfully, but these errors were encountered:
Yeah, I don't think it is good to assume knowledge of context since it is rather undocumented by the React team to begin with (which is reasonable considering it is "experimental"). 👍 to a PR to update the docs with that note.
I spent a good hour trying to figure this out until I found #61.
flux
it is not available on the react context unless you explicitly include it incontextTypes
:this.context.flux
is undefined in a react component until you add thecontextType
. Just adding a note to that effect to the docs would be enormously helpful to beginners.The text was updated successfully, but these errors were encountered: