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

Function dataPromise

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

Source from the content-addressed store, hash-verified

335 () =>
336 state.map((queryRes) => {
337 const dataPromise = () =>
338 new Promise((resolve) => {
339 if (queryRes.isFetching && queryRes.isLoading) return
340 resolve(unwrap(queryRes.data))
341 })
342 return createResource(dataPromise)
343 }),
344 ),

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.85
unwrapFunction · 0.85

Tested by

no test coverage detected