MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / useQuery

Function useQuery

packages/hosts/mcp-apps-shell/src/shell/hooks.ts:106–116  ·  view source on GitHub ↗
(
  options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
  queryClient?: QueryClientType,
)

Source from the content-addressed store, hash-verified

104 queryClient?: QueryClientType,
105): UseQueryResult<TData, TError>;
106export function useQuery<
107 TQueryFnData,
108 TError = Error,
109 TData = TQueryFnData,
110 TQueryKey extends readonly unknown[] = readonly unknown[],
111>(
112 options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
113 queryClient?: QueryClientType,
114): UseQueryResult<TData, TError> {
115 return useTanStackQuery(options, queryClient);
116}
117
118/**
119 * `useInfiniteQuery` for cursor pagination, fed by

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected