Reaction

sealed interface Reaction<out A : Action>

Describes a reaction to an Action that is different from changing the State.

Types of Reactions:

Inheritors

Types

Link copied to clipboard
data class Action<out A : Action>(val action: A) : Reaction<A>

Dispatch another Action. The Store processes the action after the state update.

Link copied to clipboard
data class Cancel(val effectId: EffectId) : Reaction<Nothing>

Cancel a running effect by its EffectId. The coroutine of the Effect is canceled. Nothing happens if no effect with the given id exists, or if the effect has terminated already.