gridcn1.2.2

Server Pagination

Client slicing and server mode, with server mode shown through TanStack Query and SWR.

useDataGridPagination has two modes. Client mode slices a dataset you already hold in memory. Server mode only does the page math. You own page, pageSize, total, and fetching the page yourself. The same server mode pairs with any fetch layer: the three pages below.