PersistSessionStorage
View as Markdowntype PersistSessionStorage = object;Defined in: react/src/hooks.ts:314
A storage adapter (AsyncStorage, SecureStore, MMKV, …) for apps without window.location
or localStorage (React Native).
Methods
Section titled “Methods”get(): | string | Promise<string | null | undefined> | null | undefined;Defined in: react/src/hooks.ts:315
Returns
Section titled “Returns”| string
| Promise<string | null | undefined>
| null
| undefined
set(id): void | Promise<void>;Defined in: react/src/hooks.ts:316
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string | undefined |
Returns
Section titled “Returns”void | Promise<void>