redux-batch-middleware
Batch Redux actions
Batch middleware for Redux. Inspired by redux-batched-actions.
Install
npm install --save redux-batch-middleware
Usage
Add as middleware:
;;; const middleware = batch; const store = createStore;
Dispatch multiple actions:
store;
API
batch
Redux middleware which converts a dispatched array of actions to a batch action.
batching(reducer)
reducer
Type: function
A reducer that should be able to handle batched actions, most likely the root reducer.
type
The name of the batch type.
License
MIT