useSessionStorage
Reactive SessionStorage.
Usage
Please refer to useStorage
Type Declarations
typescript
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<string>,
options?: UseStorageOptions<string>
): RemovableRef<string>
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<boolean>,
options?: UseStorageOptions<boolean>
): RemovableRef<boolean>
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<number>,
options?: UseStorageOptions<number>
): RemovableRef<number>
export declare function useSessionStorage<T>(
key: string,
initialValue: MaybeComputedRef<T>,
options?: UseStorageOptions<T>
): RemovableRef<T>
export declare function useSessionStorage<T = unknown>(
key: string,
initialValue: MaybeComputedRef<null>,
options?: UseStorageOptions<T>
): RemovableRef<T>
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<string>,
options?: UseStorageOptions<string>
): RemovableRef<string>
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<boolean>,
options?: UseStorageOptions<boolean>
): RemovableRef<boolean>
export declare function useSessionStorage(
key: string,
initialValue: MaybeComputedRef<number>,
options?: UseStorageOptions<number>
): RemovableRef<number>
export declare function useSessionStorage<T>(
key: string,
initialValue: MaybeComputedRef<T>,
options?: UseStorageOptions<T>
): RemovableRef<T>
export declare function useSessionStorage<T = unknown>(
key: string,
initialValue: MaybeComputedRef<null>,
options?: UseStorageOptions<T>
): RemovableRef<T>
Source
Contributors
Anthony Fu
Antério Vieira
ntnyq
Jelf
Shinigami
Pig Fang
Alex Kozack