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

Function dataPromise

packages/solid-query/src/useQueries.ts:251–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 () =>
250 state.map((queryRes) => {
251 const dataPromise = () =>
252 new Promise((resolve) => {
253 if (queryRes.isFetching && queryRes.isLoading) return
254 resolve(unwrap(queryRes.data))
255 })
256 return createResource(dataPromise)
257 }),
258 ),

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…