useIndexedDB
HookKey/value store backed by IndexedDB. Returns setItem, getItem, removeItem, clear, and getAllKeys. Auto-creates the database and object store on first use.
core/use-indexed-dbInstallation
1 · Add registry to components.json
2 · Install component
Examples
Key/value store
Data persists across sessions in IndexedDB.
No entries yet. Save one above.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
databaseNamereq | string | — | IndexedDB database name. |
storeNamereq | string | — | Object store name within the database. |
options | UseIndexedDBOptions | — | Optional version number and upgrade callback. |