Make server calls from action creator, but don't dispatch an action. When the promise resolves, call another function that actually dispatches an action.
dispy is cool, abstracts a bit of boilerplate
- Store.subscribe/unsubscribe
- Stores register individual callbacks for each action rather than a big switch.
- Simple mixin to get initial state & update it with one function (in controller view) mixins: [subscribe(state, store)]
orodio/melbjs-feb-2015
Loading spinner resets component internal state back to null or loading, next render will blow that away?
I know the 99 design guys are doing the loading stuff with promises, sounded like an interesting approach. @xzyfer on twitter would be the one to talk to about that.