Skip to content
// EFFECT DAYS 2026

BrowserKeyValueStore

2 exports Since v1.0.0 Source

Models

Creates a KeyValueStore layer that uses the browser's localStorage api. Values are stored between sessions.

Signature

declare const layerLocalStorage: Layer.Layer<KeyValueStore.KeyValueStore>

Creates a KeyValueStore layer that uses the browser's sessionStorage api. Values are stored only for the current session.

Signature

declare const layerSessionStorage: Layer.Layer<KeyValueStore.KeyValueStore>