simple-flux-dispatcher
v1.0.12
Published
simple dispatcher for flux. Works like described in the flux documentation, but simpler, and with easy to understand error messages
Downloads
4
Readme
#simple-flux-dispatcher
simple dispatcher for flux. Works like described in the flux documentation, but simpler, and with easy to understand error messages
##install
npm install --save-dev simple-flux-dispatcher
usage
var simpleDispatcher = require('simple-flux-dispatcher');
var dispatcher = simpleDispatcher();
var token = dispatcher.register(function);
dispatcher.unregister(function);
dispatcher.dispatch(action);
dispatcher.waitfor(token);