Get user data
name of the key containing the data
the data
Check if user data exists
name of the key containing the data
true if user data exists
Set user data
name of the key for the data
Optionaldata: Tthe data to save, will delete the data if undefined
a promise that will be resolved when the data has been saved
Subscribe to state changes with optional transformation and filtering.
The subscription will immediately invoke the callback with the current state (if any), then continue to call it whenever the state changes. The map and filter options allow you to transform and selectively receive updates.
Function called with state updates (after map/filter applied)
Optionaloptions: StateOptionsOptional transformations and filters for the subscription
Unsubscribe function - call this to stop receiving updates
Handle fetching and saving user specific data, e.g. settings or other state data that should persist between sessions