Provides a complete set of storage API store helper functions and the associated storage API instance and serializations strategy.
Returns the backing Svelte store for the given key; potentially sets a default value if the key is not already set.
Key to lookup in storage API.
Optional
defaultValue: TA default value to return if key not present in session storage.
Optional
storageStores: StorageStoresAdditional store creation options.
The Svelte store for this key.
Convenience method to swap a boolean value stored in storage API.
Key to lookup in storage API.
Optional
defaultValue: booleanA default value to return if key not present in session storage.
The boolean swap for the given key.
Provides the base Storage API store manager. It is recommended to use TJSLocalStorage & TJSSessionStorage for standard browser local and session storage use cases. TJSWebStorage exists to provide additional customization options for custom Storage API compatible storage instances and custom serialization configuration.