(refetchInterval?: number)
| 3 | import { api } from "~/utils/api"; |
| 4 | |
| 5 | export 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 | }; |
no outgoing calls
no test coverage detected