combineReducers
Combines reducers of the same type T into a single reducer. The first child reducer is invoked with the same action and state as the parent reducer. Every subsequent child is invoked with state returned by its predecessor.
Example of usage:
val scoreReducer: Reducer<Int> = combineReducers(::partialScoreReducer, ::anotherScoreReducer)
fun partialScoreReducer(score: Int, action: Action): Int = TODO()
fun anotherScoreReducer(score: Int, action: Action): Int = TODO()
Content copied to clipboard
Return
New reducer that combines reducers in a given order.