redux-ready
Enhances your redux store with a store.ready()
method, which resolves once all promises dispatched into the store are fulfilled.
Very handy for server rendering redux applications that initialise with async actions.
Install
npm install redux-ready --save
Set up
var withReady = ; var storeEnhancer = ; var store = ;
Usage
var app = <Provider store=store><App /></Provider>; // Render the app initially to dispatch any actions in components' lifecyclevar html = ; // Wait for async actions to resolvestore ;