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

Method createQueryFnContext

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

Source from the content-addressed store, hash-verified

774
775 // Create query function context
776 const createQueryFnContext = (): QueryFunctionContext<TQueryKey> => {
777 const queryFnContext: OmitKeyof<
778 QueryFunctionContext<TQueryKey>,
779 'signal'
780 > = {
781 client: this.#client,
782 queryKey: this.queryKey,
783 meta: this.meta,
784 }
785 addSignalProperty(queryFnContext)
786 return queryFnContext as QueryFunctionContext<TQueryKey>
787 }
788
789 const queryFnContext = createQueryFnContext()
790

Callers

nothing calls this directly

Calls 1

addSignalPropertyFunction · 0.85

Tested by

no test coverage detected