MCPcopy
hub / github.com/TanStack/query / reject

Function reject

packages/query-core/src/retryer.ts:117–122  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

115 }
116
117 const reject = (value: any) => {
118 if (!isResolved()) {
119 continueFn?.()
120 thenable.reject(value)
121 }
122 }
123
124 const pause = () => {
125 return new Promise((continueResolve) => {

Callers 15

runFunction · 0.85
queryFnFunction · 0.85
queryFnFunction · 0.85
createServerSubscriberFunction · 0.85
useBaseQueryFunction · 0.85
queryFnFunction · 0.85
queryFnFunction · 0.85
pendingThenableFunction · 0.85
cancelFunction · 0.85
runFunction · 0.85
fetchDataFunction · 0.85
abortListenerFunction · 0.85

Calls 1

isResolvedFunction · 0.85

Tested by 6

queryFnFunction · 0.68
queryFnFunction · 0.68
queryFnFunction · 0.68
queryFnFunction · 0.68
fetchDataFunction · 0.68
abortListenerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…