Skip to content

@bynary.composables.storage.Function.useStorage

github-actions[bot] edited this page Jul 11, 2024 · 3 revisions

@bynary/composables / @bynary/composables/storage / useStorage

Function: useStorage()

useStorage<T>(key, options?): WritableSignal<null | T>

Type Parameters

T extends string

Parameters

key: string

The key to use for the storage

options?: IUseStorageOptions<T>

A set of options for the storage

Returns

WritableSignal<null | T>

A signal that is synced with the given storage

Defined in

storage/src/use-storage.composable.ts:53

Clone this wiki locally