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