The grid (core) ยท console.warn
edit: true was set over a remote source but nothing can persist the write: no edit.commit hook and the source synthesised none (a read-only adapter, or one that does not declare mutate.update). Cells would change on screen
Printed by The grid (core), prefixed [lattice], since 1.24.0.
Warnings reference › edit.true.nocommit
- Identifier
edit.true.nocommit- Raised by
- The grid (core)
- Since
- 1.24.0
What happened
Editing was switched on over a source that cannot save anything. Optimistic tracking is off, so edits are not queued for a confirmation that will never come - but nothing persists them either, and a cell that changes on screen and reverts on the next fetch is the worst shape this can take.
The fix
Supply an edit.commit hook that sends the write, or use an adapter that declares mutate: { update: true }.
The smallest fix
createGrid(el, { edit: { commit: (changes) => api.patch(changes) } });
Reference
Covered in full at the API reference.