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

Function useQueryAtom

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

Source from the content-addressed store, hash-verified

551 arg: I,
552 options?: Omit<AtomQueryNewOptions<A, TData>, "select"> | Omit<CustomUseQueryOptions<A, E, TData>, "select">
553): Atom.Atom<AsyncResult.AsyncResult<A, E>> => {
554 const family = getQueryFamily(rt, q)
555 return observedAtom(family(arg), options)
556}
557
558const makeQueryView = <I, A, E, TData>(
559 getAtomRt: () => AtomClientRuntime,
560 q: QueryFamilyDescriptor<I, A, E>,
561 arg: I | WatchSource<I> | undefined | WatchSource<Option.Option<I>>,
562 options?: (AtomQueryNewOptions<A, TData> | CustomUseQueryOptions<A, E, TData>) & {

Callers 1

queryHelpersForFunction · 0.85

Calls 2

queryAtomForFunction · 0.85
getAtomRtFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…