PaginationContext
Passed to every pagination callback
Import
import { PaginationContext } from "@hyper-fetch/core"
Source
Package
Preview
type PaginationContext<R> = {
data: ExtractResponseType<R>;
pages: ExtractResponseType<R>[];
param: unknown;
}
Structure
PaginationContext
| Name | Type | Description |
|---|---|---|
| data | | Response data of the page |
| pages | | Response data of the pages loaded so far |
| param | | Value of the paging field used to fetch this page |

