gridcn1.2.2

Lazy Loading

Fetch rows only as they scroll into view. A plain fetcher, TanStack Query, and SWR.

useDataGridLazyRows keeps a sparse row array and asks for [start, end) ranges as the viewport scrolls. Skeleton rows hold the space until each range lands. What fills a range is your choice: a plain fetch, a TanStack Query cache, or SWR's global cache. Each page embeds the live registry example.