Skip to main content

Function: safeStorageSetItem()

function safeStorageSetItem(
key: string,
value: string,
getStorage?: StorageProvider
): void;

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

Write a storage value without letting storage failures escape.

Parameters​

key​

string

Storage key.

value​

string

String value to store.

getStorage?​

StorageProvider

Optional storage provider.

Returns​

void