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

Function dataPromise

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected