Skip to content
tRPC

Interface: unstable_TRPCInfiniteQueryHandle<TDef>

On this page

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

A serializable reference to an infinite query started on the server (or in a loader). Read it with trpc.unstable_$fromHandle(handle, { getNextPageParam }).

Type Parameters

Type ParameterDefault type
TDef extends ResolverDefResolverDef

Properties

[handleDef]

readonly [handleDef]: TDef & object

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

Type-only: never present at runtime. Required, so only the handle verbs create handles.

Type declaration

kind

kind: "infinite"


initialCursor?

readonly optional initialCursor: null | NonNullable<ExtractCursorType<TDef["input"]>>

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


input

readonly input: InfiniteHandleInput<TDef["input"]>

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

The input the query was started with, without cursor and direction


queryKey

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

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