Interface: TRPCContextPropsBase<TRouter, TSSRContext>
Extended By
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
client
client:
TRPCUntypedClient<TRouter>
The TRPCClient
Source
packages/react-query/src/internals/context.tsx:59
ssrContext
optionalssrContext:null|TSSRContext
The SSR context when server-side rendering
Default
tsnull
tsnull
Source
packages/react-query/src/internals/context.tsx:64
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
Generated using TypeDoc and typedoc-plugin-markdown