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

Function addSignalProperty

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

Source from the content-addressed store, hash-verified

28 const fetchFn = async () => {
29 let cancelled = false
30 const addSignalProperty = (object: unknown) => {
31 addConsumeAwareSignal(
32 object,
33 () => context.signal,
34 () => (cancelled = true),
35 )
36 }
37
38 const queryFn = ensureQueryFn(context.options, context.fetchOptions)
39

Callers 3

createQueryFnContextFunction · 0.85
createQueryFnContextMethod · 0.85
createFetchContextMethod · 0.85

Calls 1

addConsumeAwareSignalFunction · 0.90

Tested by

no test coverage detected