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

Method createQueryFnContext

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addSignalPropertyFunction · 0.85

Tested by

no test coverage detected