MCPcopy Create free account
hub / github.com/effect-app/libs / useQueryNew

Function useQueryNew

packages/vue/src/query.ts:579–585  ·  view source on GitHub ↗
(
    q: RequestHandlerWithInput<I, A, E, R, Request, Name>
  )

Source from the content-addressed store, hash-verified

577 // fallback runs PRE-select, matching TanStack (`initialData`/`placeholderData` are TQueryData).
578 const fallbackResult = withDataFallback(rawResult, options)
579 const select = options?.select
580 const result = (select
581 ? computed(() => AsyncResult.map(fallbackResult.value, select))
582 : fallbackResult) as ComputedRef<AsyncResult.AsyncResult<TData, E>>
583 const refresh = () => registry.refresh(atomRef.value)
584 const awaitResult = () =>
585 select
586 ? awaitAtomResult(registry, atomRef.value).pipe(Effect.map(select))
587 : awaitAtomResult(registry, atomRef.value)
588 const refetch = () =>

Callers 2

queryHelpersForFunction · 0.85
mapQueryFunction · 0.85

Calls 1

makeQueryViewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…