SideEffect

fun interface SideEffect<State>

SideEffects offer a way to include managed async operations in a StoreFlow. The primary input is SideEffectContext.actions, which will receive an emission for every Action dispatched to the Store. The SideEffect returns a new Flow of Action which will subsequently be dispatched back into the Store.

Functions

Link copied to clipboard
abstract fun SideEffectContext<State>.act(): Flow<Action>