usePersistentStore
Gets a persistent store.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The name of the persistent store. |
scope | string | The scope of the persistent store. (default: global) |
Returns
PersistentStoreManager- The persistent store manager.
Example
const store = usePersistentStore('scores');
Available on: Client