( getRuntime: () => Context.Context<R>, getAtomRt: () => AtomClientRuntime )
| 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 |
| 797 | export interface MakeQuery2<R> extends ReturnType<typeof makeQuery<R>> {} |
| 798 | |
| 799 | const streamQueryAtomFor = <I, A, E>( |
| 800 | rt: AtomClientRuntime, |
| 801 | q: StreamQueryFamilyDescriptor<I, A, E>, |
no test coverage detected
searching dependent graphs…