Skip to content
tRPC

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 ParameterDefault type
TDef extends ResolverDefResolverDef

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

readonly input: TDef["input"]

Defined in: tanstack-react-query/src/internals/handles.ts:64

The input the query was started with


queryKey

readonly queryKey: HandleQueryKey<TDef, TDef["input"], "query">

Defined in: tanstack-react-query/src/internals/handles.ts:62