Skip to main content

EffectReducer

Type Alias EffectReducer 

Source
pub type EffectReducer<S, A, E> = fn(&mut S, A) -> ReducerResult<E>;
Expand description

A reducer function that can emit effects.

Takes mutable state and an action, returns whether state changed and any effects to process.