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 have a flux architecture but without the singleton stores. So I have instances of stores.
Now I want to rerender my routes, and with the singleton stores I could just place this in app.js and call React.renderComponent again, but because I have store instances, I don't know how to pass the instance to the routes.
I want to do a getStateFromStore() with the storeInstance like this:
var state = getStateFromStore() {
return {
appState: storeInstance.getState()
}
}
var routes = (
<Routes location="history" onTransitionError={onError}>
<Route handler={App} appState={appState}/>
</Routes>
);
How can I do this? If I were able to rerender the routes without the React.renderComponent then I could add a update method in the routes file too.
If you have other suggestions on how to solve this, they are welcome too :)
The text was updated successfully, but these errors were encountered:
I have a flux architecture but without the singleton stores. So I have instances of stores.
Now I want to rerender my routes, and with the singleton stores I could just place this in app.js and call React.renderComponent again, but because I have store instances, I don't know how to pass the instance to the routes.
I want to do a
getStateFromStore()
with the storeInstance like this:How can I do this? If I were able to rerender the routes without the React.renderComponent then I could add a update method in the routes file too.
If you have other suggestions on how to solve this, they are welcome too :)
The text was updated successfully, but these errors were encountered: