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

Function makeStreamQuery

packages/vue/src/query.ts:775–798  ·  view source on GitHub ↗
(
  getRuntime: () => Context.Context<R>,
  getAtomRt: () => AtomClientRuntime
)

Source from the content-addressed store, hash-verified

773 ComputedRef<TData>,
774 (options?: RefetchOptions) => Effect.Effect<QueryObserverResult<TData, CauseException<E>>>,
775 UseQueryReturnType<any, any>
776 ]
777 <TData = A>(
778 arg: I | WatchSource<I>,
779 options?: CustomUndefinedInitialQueryOptions<A, CauseException<E>, TData>
780 ): readonly [
781 ComputedRef<AsyncResult.AsyncResult<TData, E>>,
782 ComputedRef<TData | undefined>,
783 (options?: RefetchOptions) => Effect.Effect<QueryObserverResult<TData, CauseException<E>>>,
784 UseQueryReturnType<any, any>
785 ]
786 }
787 } = ((
788 self: any
789 ) => {
790 const q = useQuery_(self)
791 return (arg?: any, options?: any) => q(arg, options)
792 }) as any
793 return useQuery
794}
795
796// eslint-disable-next-line @typescript-eslint/no-empty-object-type
797export interface MakeQuery2<R> extends ReturnType<typeof makeQuery<R>> {}
798
799const streamQueryAtomFor = <I, A, E>(
800 rt: AtomClientRuntime,
801 q: StreamQueryFamilyDescriptor<I, A, E>,

Callers 1

constructorMethod · 0.90

Calls 1

makeQueryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…