TanStack
API Reference

QueryFunctionContext

ts
type QueryFunctionContext<TQueryKey, TPageParam> = [TPageParam] extends [never] ? object : object;

Defined in: packages/query-core/src/types.ts:235

The object passed to queryFn: the QueryClient, the queryKey, an AbortSignal that aborts when the query is cancelled, the query's meta, and for infinite queries the pageParam of the page being fetched.

Type Parameters

TQueryKey

TQueryKey extends QueryKey = QueryKey

TPageParam

TPageParam = never