-
Notifications
You must be signed in to change notification settings - Fork 0
@bynary.composables.storage.Interface.IUseStorageOptions
github-actions[bot] edited this page Jul 11, 2024
·
3 revisions
@bynary/composables / @bynary/composables/storage / IUseStorageOptions
Options for useStorage
• T extends string
optional
initialValue:null
|T
The initial value to use for the storage.
- The current value from the storage
storage/src/use-storage.composable.ts:13
optional
skipInitialRead:boolean
Whether to skip reading the current value from the storage initially.
If set to true
, the value will be read from the storage only when it changes.
false
IBindStorageOptions
.skipInitialRead
storage/src/read-from-storage.composable.ts:15
optional
storage:Storage
The storage to use.
localStorage