Reducer Factory
abstract class ReducerFactory<A : Action, S : State, E : SideEffect>(sideEffectFactory: SideEffectFactory<E>)
Intent factory used to create an Reducer starting from an action A
Functions
Link copied to clipboard
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
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