collect

inline fun <T : Action> collect(crossinline block: suspend SideEffectScope<State, Action>.(action: T) -> Unit)

Observes actions of type T and calls block when the action is dispatched.


inline fun <T : Action> collect(target: T, crossinline block: suspend SideEffectScope<State, Action>.(action: T) -> Unit)

Observes target actions and calls block when the action is dispatched.