WithTRPCSSROptions<TRouter>
Type parameters
TRouter
extendsAnyRouter
Hierarchy
WithTRPCOptions
<TRouter
>.WithTRPCSSROptions
Properties
config
Function
Type declaration
Signature
ts
(info: object): WithTRPCConfig<TRouter>;
ts
(info: object): WithTRPCConfig<TRouter>;
Parameters
Name | Type |
---|---|
info | object |
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
Name | Type |
---|---|
opts | object |
opts.clientErrors | TRPCClientError <TRouter >[] |
opts.ctx | NextPageContext |
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
Member | Type |
---|---|
useMutation ? | Partial <UseMutationOverride > |
Inherited from: WithTRPCOptions.unstable_overrides
Defined in: react-query/dist/shared/types.d.ts:24