onAction
// JavaScript
function onAction(type, getNextState?)// TypeScript
function onAction<
S = any,
T extends string | symbol | number = any,
A extends Action<T> = AnyAction
>(
type: T,
actionReducer: SubReducer<S, A>
): SubReducer<S>
function onAction<
S = any,
A extends Action = AnyAction
>(
actionCreator: TypedActionCreator<A>,
actionReducer: SubReducer<S, A>
): SubReducer<S>Details
TypeScript Notes
Examples
See Also
Last updated