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

Method createQueryFnContext

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addSignalPropertyFunction · 0.85

Tested by

no test coverage detected