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

Function addSignalProperty

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

Source from the content-addressed store, hash-verified

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

Callers 3

createQueryFnContextFunction · 0.85
createQueryFnContextMethod · 0.85
createFetchContextMethod · 0.85

Calls 1

addConsumeAwareSignalFunction · 0.90

Tested by

no test coverage detected