Lattice Grid Buy a licence

The grid (core) ยท console.warn

filters.where("{name}", fn, { deps }) needs an array of column ids; the predicate is registered but re-runs on every pass instead.

Printed by The grid (core), prefixed [lattice], since 1.56.0.

Warnings referencefilters.where.deps:*

Identifier
filters.where.deps:*
Raised by
The grid (core)
Since
1.56.0

What happened

deps names the columns a predicate reads, so the grid can skip re-running it when nothing it depends on has changed. The value given is not an array of column ids, so it is ignored: the predicate still works and still filters correctly, and it re-runs on every pass - which is exactly the saving the option was asked for.

The fix

Pass an array of non-empty column id strings.

The smallest fix

grid.filters.where('recent', fn, { deps: ['updatedAt'] });

Reference

Covered in full at the API reference.