state property
ReadonlySignal<S>
get
state
Reactive signal holding the current state.
Reading .value inside a reactive context (such as Live, computed, or effect)
tracks this signal as a dependency, triggering re-evaluation whenever an action
is dispatched via dispatch.
Live(() => Div(text: 'Current: ${reducer.state.value}'))
Implementation
ReadonlySignal<S> get state => _state.readonly();