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'm missing one big part of how this all works: how do I dispatch an action from an event handler in a React component? I don't see that ReactMixin or ReactComponent have methods for doing this. I could get the flux instance from context and dispatch actions there, but that seems very messy.
The text was updated successfully, but these errors were encountered:
OK, that makes sense. I didn't realize that I could use FluxComponent/FluxMixin to get the flux instance (it doesn't seem that it's documented for the FluxMixin).
I'm missing one big part of how this all works: how do I dispatch an action from an event handler in a React component? I don't see that
ReactMixin
orReactComponent
have methods for doing this. I could get the flux instance from context and dispatch actions there, but that seems very messy.The text was updated successfully, but these errors were encountered: