este.Dispatcher
Isomorphic Facebook Flux like dispatcher with promises support. Made with Este.js.
Features
- Dispatcher with Promises api: All app sync/async actions and errors can be orchestrated across all app layers easily.
- App errors can be reported via provided
onError
hook. - Isomorphic, Bower and Node.js versions included.
- Bower version for production is super small, only 2.7 kB (gzipped). Yes, Closure Compiler.
Install
For Bower.
bower install steida/este-dispatcher --save
For Node.js.
npm install este-dispatcher --save
Usage
For Bower.
// Dev // Production
For Node.js.
var Dispatcher = ;
Dispatcher API
register
/** @param @return */
unregister
/** @param*/
onError
/** For error reporting. @param @param*/
dispatch
/** @param @param @return */
waitFor
/** @param @return */
goog.Promises API
Check goog/promise/promise.js