Skip to content

data-stores/local-data-store

Record-based device-local persistence, isolated by vault, plugin and store.

Class Description
LocalDataStore A local store holds structured-cloneable values; it never writes to the vault.
LocalDataStoreClosedError Thrown by every operation of a LocalDataStore whose connection is closed or closing. It replaces IndexedDB’s raw InvalidStateError (“The database connection is closing”), which names neither the store nor the cause. The usual cause is work that outlived its owner: a debounced or scheduled save that runs after the plugin unloaded and closed its store.
Interface Description
LocalDataStoreClosedErrorConstructorOptions Options of a LocalDataStoreClosedError.
LocalDataStoreCommitParams Atomic mutations of a local record store.
LocalDataStoreOpenParams Parameters for opening a local store.
Enum Description
LocalDataStoreCloseReason Why a LocalDataStore connection stopped accepting operations.