redux-concatenate-reducers
Concatenates reducers and merges states returned by them.
Description
It concatenates reducers, merging states they return.
When initializing, it sequencially calls the reducers with undefined for the first argument and merges the results.
Otherwise, it sequentially calls the reducers and merges the result, then it passes a next merged state to a next reducer.
Example
const reducer = // => { a: 1, b: 2, c: 3, d: 6 } // => { a: 3, b: 3, c: 4, d: 9 }
Installation
npm i --save redux-concatenate-reducers
API
concatenateReducers(reducers) => wrappedReducer
reducers
A list of reducerswrappedReducer
A final reducer
License
MIT