Interface: WithTRPCSSROptions<TRouter>
Extends
- WithTRPCOptions<- TRouter>
Type parameters
| Parameter | 
|---|
| TRouterextendsAnyRouter | 
Properties
abortOnUnmount
optionalabortOnUnmount:boolean
Abort all queries when unmounting
Default
ts
ts
Source
react-query/dist/shared/types.d.ts:41
Inherited from
WithTRPCOptions.abortOnUnmount
config
config: (
info) =>WithTRPCConfig<TRouter>
Parameters
| Parameter | Type | 
|---|---|
| info | object | 
| info.ctx? | NextPageContext | 
Returns
WithTRPCConfig< TRouter >
Source
Inherited from
WithTRPCOptions.config
context
optionalcontext:Context<any>
Override the default context provider
Default
ts
ts
Source
react-query/dist/shared/types.d.ts:46
Inherited from
WithTRPCOptions.context
overrides
optionaloverrides:object
Override behaviors of the built-in hooks
Type declaration
overrides.useMutation
optionaluseMutation:Partial<UseMutationOverride>
Source
react-query/dist/shared/types.d.ts:34
Inherited from
WithTRPCOptions.overrides
reactQueryContext
optionalreactQueryContext:Context<undefined|QueryClient>
Override the default React Query context
Default
ts
ts
Source
react-query/dist/shared/types.d.ts:51
Inherited from
WithTRPCOptions.reactQueryContext
responseMeta
optionalresponseMeta: (opts) =>ResponseMeta
Parameters
| Parameter | Type | 
|---|---|
| opts | object | 
| opts.clientErrors | TRPCClientError<TRouter>[] | 
| opts.ctx | NextPageContext | 
Returns
ResponseMeta
Source
ssr
ssr:
true
Source
unstable_overrides
optionalunstable_overrides:object
Override behaviors of the built-in hooks
Deprecated
use overrides instead
Type declaration
unstable_overrides.useMutation
optionaluseMutation:Partial<UseMutationOverride>
Source
react-query/dist/shared/types.d.ts:28
Inherited from
WithTRPCOptions.unstable_overrides
Generated using TypeDoc and typedoc-plugin-markdown