Skip to content
masterclass Buddy

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.

Subscribe
  • QueryFunction
  • QueryKey
  • QueryClient
  • InfiniteQueryObserver

Source: QueryFunctionContext | TanStack Query Vue Docs. Checked 2026-11-03.