useSessionStorage
Reactive SessionStorage.
Usage
Please refer to useStorage
Type Declarations
export declare function useSessionStorage(
key: string,
defaultValue: string,
options?: StorageOptions
): Ref<string>
export declare function useSessionStorage(
key: string,
defaultValue: boolean,
options?: StorageOptions
): Ref<boolean>
export declare function useSessionStorage(
key: string,
defaultValue: number,
options?: StorageOptions
): Ref<number>
export declare function useSessionStorage<T>(
key: string,
defaultValue: T,
options?: StorageOptions
): Ref<T>
export declare function useSessionStorage<T = unknown>(
key: string,
defaultValue: null,
options?: StorageOptions
): Ref<T>