StateStore

interface StateStore<S>(source)

Common interface for reading, updating, and dispatching on state.

Both StateActor (root) and ScopedState (projection) implement this. Contexts depend on StateStore — they never see the concrete type.

Inheritors

Properties

Link copied to clipboard
abstract val state: StateFlow<S>

Functions

Link copied to clipboard
abstract fun update(reducer: Reducer<S>)

Atomic state mutation.