The grid (core) ยท console.warn
computed column "{colId}" declares no `value.deps`; treating it as `deps: '*'` (a whole-row dependency). Declare the dependencies to get precise invalidation.
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › deps:missing:*
- Identifier
deps:missing:*- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
A computed column did not say which fields it reads, so the grid has to assume it reads all of them. The column is correct - it simply recomputes whenever anything in the row changes, instead of only when its inputs do, which costs work on every edit and every incoming delta.
The fix
List the fields the getter reads in value.deps, or declare deps: '*' explicitly if it really does read the whole row.
The smallest fix
columns: [{ id: 'net', value: { deps: ['gross', 'tax'], get: (p) => p.data.gross - p.data.tax } }]
Reference
Covered in full at the API reference.