Presto
GitHub
Getting Started
Packages
View Model
Final Form
REST
Endpoint
ApiError
Endpoint
mergeRequestInit
MiddlewareContext
SkipToResponse
Middleware
batchMiddleware
dedupeInFlightRequestsMiddleware
detectBadPaginationMiddleware
paginationMiddleware
requestDefaultsMiddleware
viewModelCachingMiddleware
Routing
UI
UI ANTD
Util
On this page
Usage
Arguments
paginationMiddleware
Source
import { paginationMiddleware } from "@prestojs/rest";
paginationMiddleware
<
T
>
(
?paginatorClass
,
?options
)
Source
Arguments:
Argument
Type
Description
paginatorClass
PaginatorInterfaceClass
options
An object with the properties below
options.getPaginationState
GetPaginationState
options.resultPath
string
Returns:
MiddlewareObject