Data Router ยท console.warn
buffer() called with no window or max; applying a default cap of {n} deltas so the buffer stays bounded. Pass { window } or { max } to size it.
Printed by Data Router, prefixed [lattice], since 1.32.0.
Warnings reference › data-router:buffer-default-cap
- Identifier
data-router:buffer-default-cap- Raised by
- Data Router
- Since
- 1.32.0
What happened
buffer() was called with neither bound. An unbounded buffer on a live feed grows until the tab runs out of memory, so the router applied a default cap rather than doing what was literally asked. Recording is on, with that cap.
The fix
Size the buffer deliberately: { window } in milliseconds for a time span, { max } for a count. Pass { max: null } explicitly if you really mean unbounded.
The smallest fix
router.buffer({ window: 60000, max: 10000 });
Reference
Covered in full at the API reference.