redux-chain
Redux-chain allows you to dispatch multiple actions calls using a single dispatch call.
;
Installation
Download
npm install --save redux-chain
Build
npm run build
Installation & Usage
Import & add the middleware to your Redux store
;;; const store = ;
To enable thunk actions (or other useful middleware), simply apply redux-chain before other middleware.
;;;; const middleware = chainMiddleware thunk; // not: [thunk, chainMiddleware] const store = ;
Do more with less
I love to combine redux-chain
with novux
(github.com/neednova/novux), a tool that helps declare state changes simply, clearly and quickly.
const todos = 1 2; ;