Skip to content

UsePaginationResult

UsePaginationResult<T> = object

Defined in: packages/pagination/src/use-pagination.ts:24

Return value of the usePagination hook.

T

The item type in the paginated list.

hasMore: boolean

Defined in: packages/pagination/src/use-pagination.ts:30

true if there are more pages to fetch (a nextCursor exists).


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: () => 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.

void