Skip to main content
Version: 10.x

WithTRPCNoSSROptions<TRouter>

Type parameters

  • TRouter extends AnyRouter

Hierarchy

  • WithTRPCOptions<TRouter>.WithTRPCNoSSROptions

Properties

abortOnUnmount?

boolean

Abort all queries when unmounting

Default

false

Inherited from: WithTRPCOptions.abortOnUnmount

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

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:46

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.overrides

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

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:51

ssr?

false

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

unstable_overrides?

object

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

Override behaviors of the built-in hooks

Deprecated

use overrides instead

Type declaration

MemberType
useMutation?Partial<UseMutationOverride>

Inherited from: WithTRPCOptions.unstable_overrides

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