on
inline fun <RA : A, FromState : S> on(noinline block: suspend SideEffectFactory<E>.(RA, StateModifier<FromState>) -> S)
Define a Reducer's body for the defined action A
Parameters
block
fun <RA : A, FromState : S> on(kClassAction: KClass<RA>, kClassFromState: KClass<FromState>, block: suspend SideEffectFactory<E>.(RA, StateModifier<FromState>) -> S)
Define a Reducer's body for the defined action with class KClass
Parameters
k Class Action
k Class From State
block