Function useUniversalStorage
- useUniversalStorage<T>(key: string, initialValue: T, options?: {
isCookieStorage?: boolean;
isLocalStorage?: boolean;
isSessionStorage?: boolean;
}): RemovableRef<T>
-
Parameters
-
key: string
-
initialValue: T
-
options: {
isCookieStorage?: boolean;
isLocalStorage?: boolean;
isSessionStorage?: boolean;
} = ...
-
Optional
isCookieStorage?: boolean
-
Optional
isLocalStorage?: boolean
-
Optional
isSessionStorage?: boolean
Returns RemovableRef<T>