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

Function streamQueryAtomFor

packages/vue/src/query.ts:719–727  ·  view source on GitHub ↗
(
  rt: AtomClientRuntime,
  q: StreamQueryFamilyDescriptor<I, A, E>,
  arg: I,
  options?: AtomStreamQueryOptions
)

Source from the content-addressed store, hash-verified

717 ) =>
718 <TData = A>(
719 arg: I | WatchSource<I> | undefined | WatchSource<Option.Option<I>>,
720 options?: any
721 ) => {
722 const view = makeQueryView<I, A, E, TData>(getAtomRt, q, arg, options)
723
724 // 4th element is internal-only; the public `.suspense()` Promise boundary lives in makeClient.
725 const handle = {
726 awaitResult: view.awaitResult,
727 refetch: view.refetch,
728 refresh: view.refresh,
729 registry: view.registry,
730 atom: view.atom

Callers 2

useStreamQueryAtomFunction · 0.85
useStreamQueryNewFunction · 0.85

Calls 2

getStreamQueryFamilyFunction · 0.85
observedStreamAtomFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…