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

Function resolve

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

Source from the content-addressed store, hash-verified

108 const canStart = () => canFetch(config.networkMode) && config.canRun()
109
110 const resolve = (value: any) => {
111 if (!isResolved()) {
112 continueFn?.()
113 thenable.resolve(value)
114 }
115 }
116
117 const reject = (value: any) => {
118 if (!isResolved()) {

Callers 15

runFunction · 0.85
queryFnFunction · 0.85
queryFnFunction · 0.85
createServerSubscriberFunction · 0.85
useBaseQueryFunction · 0.85
dataPromiseFunction · 0.85
queryFnFunction · 0.85
queryFnFunction · 0.85
pendingThenableFunction · 0.85

Calls 1

isResolvedFunction · 0.85

Tested by 6

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…