Skip to content

Function: createLocalStorage() ​

ts
function createLocalStorage(config?): StorageInstance;

Defined in: storage/presets.ts:95

Creates an instance over localStorage, with crossTab on. Where the browser refuses to hand over the storage, it warns and keeps the values in memory. Where there is no window, as on the server, it holds nothing.

Parameters ​

ParameterType
config?StorageConfig

Returns ​

StorageInstance

Released under the MIT License.