3 ms·
Yes but how do we manage inter-store notifications? bubbling up to the root store and down to the other store? Do we post messages/actions for that , or do we c
by polskibus 11y ago
Yes but how do we manage inter-store notifications? bubbling up to the root store and down to the other store? Do we post messages/actions for that , or do we call referenced stores directly?
It seems flux just pushed the binding thing up a level, but the complexity is still there.
- revskill 11y agoI 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.