UsePaginationResult
UsePaginationResult<
T> =object
Defined in: packages/pagination/src/use-pagination.ts:24
Return value of the usePagination hook.
Type Parameters
Section titled “Type Parameters”T
The item type in the paginated list.
Properties
Section titled “Properties”hasMore
Section titled “hasMore”hasMore:
boolean
Defined in: packages/pagination/src/use-pagination.ts:30
true if there are more pages to fetch (a nextCursor exists).
isLoading
Section titled “isLoading”isLoading:
boolean
Defined in: packages/pagination/src/use-pagination.ts:32
true while a page fetch is in flight.
items:
T[]
Defined in: packages/pagination/src/use-pagination.ts:26
Accumulated, deduplicated items from all loaded pages.
loadMore()
Section titled “loadMore()”loadMore: () =>
void
Defined in: packages/pagination/src/use-pagination.ts:28
Fetches the next page of results. No-op if already loading or no more pages.
Returns
Section titled “Returns”void