Data Router ยท console.warn
{method}() needs a buffered window; call router.buffer({ window, max }) first to record one.
Printed by Data Router, prefixed [lattice], since 1.32.0.
Warnings reference › data-router:no-buffer
- Identifier
data-router:no-buffer- Raised by
- Data Router
- Since
- 1.32.0
What happened
A time-travel method was called on a router that is not recording. Nothing is buffered, so there is no history to seek into, and the call did nothing. Buffering is opt-in because it is the only feature that makes the router hold on to deltas.
The fix
Call router.buffer() - with a window (milliseconds) or a max (number of deltas) - before using the time-travel API.
The smallest fix
router.buffer({ window: 300000 });
Reference
Covered in full at the API reference.