UsePaginationOptions
UsePaginationOptions<
T> =object
Defined in: packages/pagination/src/use-pagination.ts:14
Options for the usePagination hook.
Type Parameters
Section titled “Type Parameters”T
The item type in the paginated list.
Properties
Section titled “Properties”getKey()?
Section titled “getKey()?”
optionalgetKey: (item) =>string|number
Defined in: packages/pagination/src/use-pagination.ts:16
Extracts a unique key from each item for deduplication. Defaults to item.id.
Parameters
Section titled “Parameters”T
Returns
Section titled “Returns”string | number