The grid (core) ยท console.warn
filters.reapply({name}) names no registered where predicate; nothing was re-run.
Printed by The grid (core), prefixed [lattice], since 1.56.0.
Warnings reference › filters.reapply:*
- Identifier
filters.reapply:*- Raised by
- The grid (core)
- Since
- 1.56.0
What happened
reapply(name) re-runs a registered where predicate whose result may have changed although the rows have not. That name is not registered, so nothing was re-run and the rows on screen are unchanged. Reporting it is what tells a refreshed filter apart from a name that was never registered.
The fix
Check the name against the registered predicates. reapply() with no name re-runs all of them.
The smallest fix
grid.filters.where('recent', (row) => row.at > cutoff);
cutoff = Date.now() - 3600e3;
grid.filters.reapply('recent');
Reference
Covered in full at the API reference.