3 ms·
I use BaconJS as a FRP library to deal with async and store communication. In that way, you will have the root store that combines all events from child store.
by revskill 11y ago
I use BaconJS as a FRP library to deal with async and store communication. In that way, you will have the root store that combines all events from child store. Then the root tree component will listen for these events to render.
With this architecture, you need to separate the root stores correctly based on those events, which needs to be independent from each other root stores.
One benefit of this approach is that, you don't need to deal with Dispatcher, ActionCreator, Constant, blablahh.
You just need actions(optional) and stores.