redux-dispatch-batch-middleware
Middleware that allows to dispatch an array of actions
Installation
yarn add redux-dispatch-batch-middleware
or (if you are not using Yarn, but hope you do 😉)
npm i redux-dispatch-batch-middleware
Usage
In place where your createStore
lives:
;; const createStoreWithMiddlewares = createStore;
and now you can dispatch your actions like this:
;
🎉
p.s. And of course you can still dispatch like this:
;