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