readonly
$state: Store<StateValue<T>>
The underlying Effector store
readonly
value: StateValue<T>
Current state value
readonly
set: (value: StateValue<T>) => StateValue<T>
Set new state value
readonly
update: (updater: (prev: StateValue<T>) => StateValue<T>) => void
Update state with a function
readonly
reset: () => void
Reset state to initial value
readonly
subscribe: (fn: (value: StateValue<T>) => void) => () => void
Subscribe to state changes