redux-command
v1.0.0
Published
``` import {commandMiddleware, commandCreator} from 'redux-command'; const store = createStore( reducer, applyMiddleware(commandMiddleware) );
Downloads
3
Maintainers
Readme
redux-command
API
example
import {commandMiddleware, commandCreator} from 'redux-command';
const store = createStore(
reducer,
applyMiddleware(commandMiddleware)
);
const command = commandCreator(state => Promise.resolve(state));
store.dispatch(command()).then(result => console.log(result));