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

Function observedStreamAtom

packages/vue/src/query.ts:462–473  ·  view source on GitHub ↗
(
  atom: Atom.Writable<Atom.PullResult<A, E>, void>,
  options?: AtomStreamQueryOptions
)

Source from the content-addressed store, hash-verified

460 const items = computed(() =>
461 Option.getOrElse(
462 Option.map(AsyncResult.value(result.value), (_) => _.items),
463 () => []
464 )
465 )
466 const latest = computed(() => items.value.at(-1))
467 const done = computed(() =>
468 Option.getOrElse(
469 Option.map(AsyncResult.value(result.value), (_) => _.done),
470 () => false
471 )
472 )
473
474 return {
475 result,
476 items,

Callers 1

streamQueryAtomForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…