Interface IStoreWriter<TState>
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Minimal write-side interface exposing a store's state-update API to collaborators. Store<TState> implements it explicitly.
public interface IStoreWriter<TState>
Type Parameters
TState
Properties
- Current
Snapshot of the current state.
Methods
- Mutate(Func<TState, TState>)
Updates state unconditionally. Used for cases like Reset where notification must always fire.
- SetState(Func<TState, TState>)
Updates state (equality-checked).