TanStack · Type Alias
QueryFunctionContext
QueryFunctionContext is the object passed to a query function. It provides the query client, key, cancellation signal, metadata, and the current page parameter for infinite queries.
Last updated
Syntax
type QueryFunctionContext<TQueryKey extends QueryKey = QueryKey, TPageParam = never> = [TPageParam] extends [never] ? object : object;In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
QueryFunctionQueryKeyQueryClientInfiniteQueryObserver