Skip to content
tRPC

Partners

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 ParameterDefault type
TLinkContext extends objectRecord<string, unknown>

Properties

abortOnUnmount?

optional abortOnUnmount: boolean

Defined in: types.ts:89

Opt out or into aborting request on unmount


context?

optional context: 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?

optional ssr: boolean

Defined in: types.ts:85

Opt out of SSR for this query by passing ssr: false