The grid (core) ยท console.warn
history capture threw; the action was not recorded.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › history.capture.throw
- Identifier
history.capture.throw- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
The history model captures a snapshot before an action so it can be undone, and the capture function threw. The action still happens; it simply has no undo entry, so undo will step past it to the previous one.
The fix
The error is attached to the console line. The captured value is cloned, so it must be structured-cloneable.
Reference
Covered in full at the API reference.