pagination
Installation
SKILL.md
This skill builds on core, table-features, and client-vs-server. Choose client slicing or server pages, never both accidentally.
Setup
import {
createPaginatedRowModel,
rowPaginationFeature,
tableFeatures,
} from '@tanstack/table-core'
export const features = tableFeatures({
rowPaginationFeature,
paginatedRowModel: createPaginatedRowModel(),
})
export const initialState = { pagination: { pageIndex: 0, pageSize: 25 } }