Data Router · console.warn
router.persist() found no usable IndexedDB (a non-browser runtime, private mode, or blocked storage); the router runs in-memory with no durable resume. Pass { storage } to use another backend.
Printed by Data Router, prefixed [lattice], since 1.40.0.
Warnings reference › data-router:no-indexeddb
- Identifier
data-router:no-indexeddb- Raised by
- Data Router
- Since
- 1.40.0
What happened
Persistence was asked for and no IndexedDB could be opened - a non-browser runtime, a private window, or storage blocked by policy. The router keeps working entirely in memory: nothing is saved, and a reload starts from scratch instead of resuming.
The fix
Supply your own storage object with get/set (localStorage, a server round-trip, anything), or accept the in-memory behaviour.
The smallest fix
router.persist({ storage: { get: (k) => …, set: (k, v) => … } });
Reference
Covered in full at the API reference.