A reactive variable (RV) function that allows getting, setting, and subscribing to changes.
The type of the stored value.
Retrieves the current value of the reactive variable.
The current value of type T.
T
Updates the value of the reactive variable.
The new value to set.
Optional
Optional configuration for the update.
The updated value.
Subscribes a listener to value changes.
A callback function that is triggered when the value changes.
A cleanup function to remove the listener.
A reactive variable (RV) function that allows getting, setting, and subscribing to changes.