SideEffectContext

interface SideEffectContext<State>

The receiver passed to a SideEffect. The primary input is actions, however we the currentState can also be captured at any time inside the SideEffect.

Functions

Link copied to clipboard
abstract suspend fun currentState(): State

Returns the current state of the StoreFlow at function call-time.

Properties

Link copied to clipboard
abstract val actions: Flow<Action>

A Flow of all the actions dispatched to the StoreFlow. A well-behaved SideEffect will usually filterIsInstance() then transformLatest to emit new actions back into the StoreFlow