Creates a root reducer by mapping keys to slice reducers.
Each slice reducer is called with:
the previous slice state at state[key] (or undefined initially)
the dispatched action
The returned reducer builds the next state object using all reducer keys.
If none of the slice reducers produce a change (reference equality),
the previous state object is returned to avoid unnecessary updates.
Parameters
reducers: object
An object whose values are reducers.
Returns Function
A root reducer function compatible with your createStore.
Creates a root reducer by mapping keys to slice reducers.
Each slice reducer is called with:
state[key](orundefinedinitially)The returned reducer builds the next state object using all reducer keys. If none of the slice reducers produce a change (reference equality), the previous
stateobject is returned to avoid unnecessary updates.