Skip to main content

Use case: List all rows

Useful for exports or small filtered result sets.

<DataTable
source={{
type: "server",
options: {
fetch: (params) => getList(params),
queryKey: (params) => [KEY, "list", params],
listAllRecords: true, // serializes pagination[perPage]=-1
initialPerPage: -1,
},
}}
enablePagination
/>

Go treats PageSizeAll (-1) as no LIMIT/OFFSET. Pagination meta returns total_pages: 1.

Combine with current filters so “export all” still respects the active query.