Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 716 Bytes

File metadata and controls

20 lines (12 loc) · 716 Bytes

Revogrid - infinity scroll loading state

Quick start

requirements: access to @revolist:registry=https://npm.rv-grid.com

pnpm install
pnpm run start

issues

Fetching smaller chunks (e.g., as a configuration requirement) does not fill the grid enough to reach the bottom edge of the viewport.

consequences

at very first load, when the viewport is tall enough to display all chunkSize=20 rows, and the user doesn't scroll, no further chunks are ever requested.

Not only is there no scroll event at all — even if one fired, the preload condition would mis-target the next chunk index due to Math.ceil(h/chunkSize) overshooting by one when the last visible item is at position chunkSize-1.