Skip to main content

Function: onStorageChange

onStorageChange(key, listener): void

Listen to a change in the localstorage

Parameters

NameTypeDescription
keystring: key of the local storage entry
listener(newValue: any, oldValue: any) => void: a function receiving the old value an the new value

Returns

void

Defined in

onekijs/packages/onekijs-framework/src/utils/storage.ts:89