Skip to content
tRPC

Partners

Type Alias: ~~WithTRPCConfig<TRouter>~~

On this page

WithTRPCConfig<TRouter>: CreateTRPCClientOptions<TRouter> & CreateTRPCReactQueryClientConfig & object

Defined in: withTRPC.tsx:44

What the config callback returns: tRPC client options, QueryClient options and abortOnUnmount.

Type declaration

abortOnUnmount?

optional abortOnUnmount: boolean

Abort pending queries when their component unmounts.

Default

false

Type Parameters

Type Parameter
TRouter extends AnyRouter

Deprecated

part of createTRPCNext, which is built on @trpc/react-query.

See

https://trpc.io/docs/client/nextjs/pages-router/setup#moving-from-createtrpcnext