ChildReducer

interface ChildReducer<in ParentState, in Action : Any, out ChildState>

A transformed Reducer for combineReducers that returns the next child state, given the parent state and an action to handle.

Properties

Link copied to clipboard
abstract val initialState: ChildState

An initial state.

Functions

Link copied to clipboard
abstract fun reduce(parent: ParentState, action: Action): ChildState

Returns the next child state, given the parent state and an action to handle.