FetchInfiniteResult
Import
import { FetchInfiniteResult } from "@hyper-fetch/core"
Source
Package
Preview
type FetchInfiniteResult<R,P> = {
dehydrated: HydrateDataType[];
error: ExtractErrorType<R> | null;
hasNextPage: boolean;
items: PaginationItem<R, P>[];
pageParams: unknown[];
pages: ExtractResponseType<R>[];
responses: ResponseType<ExtractResponseType<R>, ExtractErrorType<R>, ExtractAdapterType<R>>[];
total: number | null;
}
Structure
FetchInfiniteResult
| Name | Type | Description |
|---|---|---|
| dehydrated | | Pass it to
|
| error | | Error of the page that stopped fetching |
| hasNextPage | | |
| items | | Items of all the fetched pages |
| pageParams | | Paging values of the fetched pages |
| pages | | Response data of the fetched pages |
| responses | | Full responses of the fetched pages |
| total | | Size of the whole list, when the pagination declares
|

