react-promise-batching
Batching strategy that support promise and generators as callback
Usage
npm install react-promise-batching
Do once:
;;ReactUpdatesinjection;
Somewhere:
;const batchedUpdates = ReactUpdatesbatchedUpdates;// ... { // do async stuff const fooPromise = fluxLib; ; const barPromise = fluxLib; ; // no real sense now ... // simple function const emptyFunction = null; ; // generator function const generatorFunction = { a+b;}; ; // generator object const generatorObject = ; ; // render after: fooPromise, barPromise resolve/reject and emptyFunction, generatorFunction and generatorObject do its job}// ...
Todo
Tests...