Type of value stored in the store
Get the current value from the store.
Set a new value in the store and notify subscribers.
Update the store value using a function and notify subscribers.
Subscribe to store changes.
The callback function to execute on updates.
A function to unsubscribe from changes.
Unsubscribe a previously registered callback.
Typically called using the function returned from subscribe().
The function that was initially registered.
Reactive store for state management. Stores a value and provides reactive updates. Used for managing dynamic data within Forest.js.
Example