Skip to content
tRPC

Partners

Function: httpBatchLink()

On this page

httpBatchLink<TRouter>(opts): TRPCLink<TRouter>

Defined in: packages/client/dist/httpBatchLink-Dxqsu9CE.d.mts:43

A terminating link that batches calls made in the same tick into one HTTP request.

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
optsHTTPBatchLinkOptions<TRouter["_def"]["_config"]["$types"]>

Returns

TRPCLink<TRouter>

See

https://trpc.io/docs/client/links/httpBatchLink