Skip to main content

Function: safeStorageGetItem()

function safeStorageGetItem(
key: string,
getStorage?: StorageProvider
): string | null;

Defined in: utils/storage/storageUtils.ts:61

Read a storage value without letting storage failures escape.

Parameters​

key​

string

Storage key.

getStorage?​

StorageProvider

Optional storage provider.

Returns​

string | null

Stored value, or null when unavailable.