API reference
@salmonui/data/storage
6 exported symbols: 3 functions, 2 interfaces and 1 type. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/data/storage';Functions
createJsonStateStorageState storage over the JSON protocol endpoint: { v: 1, state: { op: 'load' | 'save' | 'remove', gridId, state?, expectedVersion? } } -> { v: 1, state: DataGrid…createKeyValueStateStorageKey-value storage. The store is injected (never localStorage directly). Versions are a counter kept beside the state, so expectedVersion detects a concurrent s…createMemoryStoreWraps a Map as a KeyValueStore (tests, SSR).
Interfaces
DataGridStateStorageKeyValueStoreAny sync or async key-value store (localStorage, sessionStorage, IndexedDB wrappers, Redis clients, Maps).