Interface: TRPCProviderProps<TRouter, TSSRContext>
Extends
TRPCContextProps<TRouter,TSSRContext>
Type parameters
| Parameter |
|---|
TRouter extends AnyRouter |
TSSRContext |
Properties
abortOnUnmount
optionalabortOnUnmount:boolean
Deprecated
pass abortOnUnmount to createTRPCReact instead
Abort loading query calls when unmounting a component - usually when navigating to a new page
Default
tsfalse
tsfalse
Source
packages/react-query/src/internals/context.tsx:79
Inherited from
TRPCContextProps.abortOnUnmount
children
children:
ReactNode
Source
packages/react-query/src/shared/hooks/types.ts:147
client
client:
TRPCUntypedClient<TRouter>
The TRPCClient
Source
packages/react-query/src/internals/context.tsx:59
Inherited from
queryClient
queryClient:
QueryClient
The react-query QueryClient
Source
packages/react-query/src/internals/context.tsx:97
Inherited from
ssrContext
optionalssrContext:null|TSSRContext
The SSR context when server-side rendering
Default
tsnull
tsnull
Source
packages/react-query/src/internals/context.tsx:64
Inherited from
ssrState
optionalssrState:SSRState
State of SSR hydration.
falseif not using SSR.prepasswhen doing a prepass to fetch queries' datamountingbefore TRPCProvider has been rendered on the clientmountedwhen the TRPCProvider has been rendered on the client
Default
tsfalse
tsfalse
Source
packages/react-query/src/internals/context.tsx:73
Inherited from
Generated using TypeDoc and typedoc-plugin-markdown