SideEffectContext

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.

Properties

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

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

Functions

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

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