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
StateX maintains it's own state. However you can subscribe to state changes and update state based on your own global state using the following.
import{State}from'statex'importImmutablefrom'statex/dist/core/immutable'// subscribe to state changesState.subscribe((state)=>console.log('changed state',state))// update stateState.next(Immutable.from(newState))
I want to do this.
https://stackoverflow.com/questions/37221872/storing-global-object-outside-of-redux-store-in-react-redux-app
The text was updated successfully, but these errors were encountered: