combineReducers Function
Deprecated in 4.15.0. Use your state management APIs instead.
Turns an object whose values are different reducer functions, into a single reducer function. It will call every child reducer, and gather their results into a single state object, whose keys correspond to the keys of the passed reducer functions.
//@template S Combined state object type.
combineReducers<A>(reducers: A): (state: CombinedReducerState<A>, action: ReducerActions<>) => CombinedReducerState<A>
Returns - (state: CombinedReducerState<A>, action: ReducerActions<>) => CombinedReducerState<A>
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.