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?
optionalabortOnUnmount:boolean
Abort pending queries when their component unmounts.
Default
falseType 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