1.0.0 • Published 7 years ago
redux-command v1.0.0
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));
1.0.0
7 years ago