Interface: TRPCReactRequestOptions<TLinkContext>
On this page
Defined in: types.ts:72
tRPC options for a single query or mutation, passed as trpc.
TLinkContext is the context the client's links read, when it was
created with router: routerType<AppRouter>().
Extends
Omit<TRPCRequestOptions,"signal"|"context">
Type Parameters
| Type Parameter | Default type |
|---|---|
TLinkContext extends object | Record<string, unknown> |
Properties
abortOnUnmount?
optionalabortOnUnmount:boolean
Defined in: types.ts:89
Opt out or into aborting request on unmount
context?
optionalcontext:withOperationContext<TLinkContext>
Defined in: types.ts:81
Context for the links, such as a flag a splitLink reads.
See
https://trpc.io/docs/client/links#managing-context
ssr?
optionalssr:boolean
Defined in: types.ts:85
Opt out of SSR for this query by passing ssr: false