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

Function addSignalProperty

packages/query-core/src/infiniteQueryBehavior.ts:41–48  ·  view source on GitHub ↗
(object: object)

Source from the content-addressed store, hash-verified

39 let cancelled = false
40 const signalContext: FetchSignalContext = context
41 const addSignalProperty = (object: object) => {
42 addConsumeAwareSignal(
43 object,
44 () => context.signal,
45 () => (cancelled = true),
46 signalContext[fetchSignal],
47 )
48 }
49
50 const queryFn = ensureQueryFn(context.options, context.fetchOptions)
51

Callers 3

createQueryFnContextFunction · 0.85
createQueryFnContextMethod · 0.85
createFetchContextMethod · 0.85

Calls 1

addConsumeAwareSignalFunction · 0.90

Tested by

no test coverage detected