Skip to main content
Version: v8.0.0

PaginationContext

Passed to every pagination callback


Import
import { PaginationContext } from "@hyper-fetch/core"

Preview​

type PaginationContext<R> = {
data: ExtractResponseType<R>;
pages: ExtractResponseType<R>[];
param: unknown;
}

Structure​

PaginationContext
NameTypeDescription
data
ExtractResponseType<R>

Response data of the page

pages
ExtractResponseType<R>[]

Response data of the pages loaded so far

param
unknown

Value of the paging field used to fetch this page