Interface: StorageConfig
Defined in: storage/create-storage.ts:55
The options every storage instance takes.
Properties
| Property | Type | Default value | Description | Defined in |
|---|---|---|---|---|
crossTab? | boolean | false, true for local storage | Whether changes made outside the instance, as in another tab, notify its listeners. | storage/create-storage.ts:64 |
onError? | ErrorHandler | undefined | Called with whatever the adapter throws. Without it, the failure passes silently. | storage/create-storage.ts:66 |
prefix? | string | '' | Added to every key before the adapter sees it. A key outside it belongs to something else, so keys does not list it and clear does not remove it. | storage/create-storage.ts:62 |