MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / useMonitor

Function useMonitor

app/src/components/monitors/useMonitor.ts:5–12  ·  view source on GitHub ↗
(refetchInterval?: number)

Source from the content-addressed store, hash-verified

3import { api } from "~/utils/api";
4
5export const useMonitor = (refetchInterval?: number) => {
6 const router = useRouter();
7
8 return api.monitors.get.useQuery(
9 { id: router.query.id as string },
10 { enabled: !!router.query.id, refetchInterval },
11 );
12};

Callers 5

MonitorContentTabsFunction · 0.90
InitialFiltersFunction · 0.90
SecondaryFiltersFunction · 0.90
ResultsFunction · 0.90
MonitorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected