Lattice Grid Buy a licence

The grid (core) ยท console.warn

selection.keys() was read while every row ma...

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

Warnings reference › selection:predicate-partial-keys

Identifier
selection:predicate-partial-keys
Raised by
The grid (core)
Since
1.79.0

What happened

grid.selection.keys() returns an array, and under a predicate selection on a pushdown source that array can only hold the keys of the rows the grid has loaded. The selection covers more rows than that (or its size has not been counted yet), so what came back is a subset - keys()'s sibling to selection:predicate-partial. Readers of keys() inside the grid, and outside it (the data router's link()/relate() among them), see the same subset.

The fix

Read grid.selection.stream() for every selected row, and await grid.selection.count() for how many there are.

Reference

Covered in full at the API reference.