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
Arguments
batchMiddleware
Source
import { batchMiddleware } from "@prestojs/rest";
batchMiddleware
<
BatchCallReturn
,
IndividualResult
>
(
options
)
Source
Arguments:
Argument
Type
Description
*
options
An object with the properties below
options.batchDelay
number
options.decodeBody
Function
*
options.execute
Function
options.getBatchKey
Function
options.reject
Function
*
options.resolve
Function
Returns:
Middleware function