MCPcopy Create free account
hub / github.com/TanStack/query / createQueryFnContext

Method createQueryFnContext

packages/query-core/src/query.ts:461–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459
460 // Create query function context
461 const createQueryFnContext = (): QueryFunctionContext<TQueryKey> => {
462 const queryFnContext: OmitKeyof<
463 QueryFunctionContext<TQueryKey>,
464 'signal'
465 > = {
466 client: this.#client,
467 queryKey: this.queryKey,
468 meta: this.meta,
469 }
470 addSignalProperty(queryFnContext)
471 return queryFnContext as QueryFunctionContext<TQueryKey>
472 }
473
474 const queryFnContext = createQueryFnContext()
475

Callers

nothing calls this directly

Calls 1

addSignalPropertyFunction · 0.85

Tested by

no test coverage detected