extend-reducer
Extend reducer with other reducers.
npm install --save extend-reducer
Example
const init = field: 1 const root = ...prev field: prevfield + currconst some = ...prev field: prevfield + curr const reducer = // state structureconst state = field: 1 some: field: 1 const next = // result// { field: 4,// some: {// field: 4,// },// }
Why?
Sometimes we need to add some Redux reducer as a key to another core reducer. Also it fill uncovered with combineReducer and reduceReducers cases.