Interface: unstable_TRPCQueryHandle<TDef>
On this page
Defined in: tanstack-react-query/src/internals/handles.ts:54
A serializable reference to a query started on the server (or in a loader).
Pass it to a client component and read it with trpc.unstable_$fromHandle(handle).
Type Parameters
| Type Parameter | Default type |
|---|---|
TDef extends ResolverDef | ResolverDef |
Properties
[handleDef]
readonly[handleDef]:TDef&object
Defined in: tanstack-react-query/src/internals/handles.ts:61
Type-only: never present at runtime. Required, so only the handle verbs create handles.
Type declaration
kind
kind:
"query"
input
readonlyinput:TDef["input"]
Defined in: tanstack-react-query/src/internals/handles.ts:64
The input the query was started with
queryKey
readonlyqueryKey:HandleQueryKey<TDef,TDef["input"],"query">
Defined in: tanstack-react-query/src/internals/handles.ts:62