Skip to main content
Version: 10.x

WithTRPCSSROptions<TRouter>

Type parameters

  • TRouter extends AnyRouter

Hierarchy

  • WithTRPCOptions<TRouter>.WithTRPCSSROptions

Properties

config

Function

Type declaration

Signature
ts
(info: object): WithTRPCConfig<TRouter>;
ts
(info: object): WithTRPCConfig<TRouter>;
Parameters
NameType
infoobject
info.ctx?NextPageContext
Returns

WithTRPCConfig<TRouter>

Inherited from: WithTRPCOptions.config

Defined in: next/src/withTRPC.tsx:66

context?

Context<any>

Override the default context provider

Default

undefined

Inherited from: WithTRPCOptions.context

Defined in: react-query/dist/shared/types.d.ts:31

reactQueryContext?

Context<undefined | QueryClient>

Override the default React Query context

Default

undefined

Inherited from: WithTRPCOptions.reactQueryContext

Defined in: react-query/dist/shared/types.d.ts:36

responseMeta?

Function

Type declaration

Signature
ts
(opts: object): ResponseMeta;
ts
(opts: object): ResponseMeta;
Parameters
NameType
optsobject
opts.clientErrorsTRPCClientError<TRouter>[]
opts.ctxNextPageContext
Returns

ResponseMeta

Defined in: next/src/withTRPC.tsx:72

ssr

true

Defined in: next/src/withTRPC.tsx:71

unstable_overrides?

object

ts
{
useMutation?: Partial<UseMutationOverride>;
}
ts
{
useMutation?: Partial<UseMutationOverride>;
}

Override behaviors of the built-in hooks

Type declaration

MemberType
useMutation?Partial<UseMutationOverride>

Inherited from: WithTRPCOptions.unstable_overrides

Defined in: react-query/dist/shared/types.d.ts:24