Observable state container with subscription support. Enables reactive state sharing between middleware providers and consumers.
Dispose state and clear all observers
Get current value
Set new value and notify observers
Subscribe to changes. Callback is called immediately with current value. Returns unsubscribe function.
Functional update
Observable state container with subscription support. Enables reactive state sharing between middleware providers and consumers.