(projectId: string)
| 599 | } |
| 600 | |
| 601 | export function useProjectQuery(projectId: string) { |
| 602 | return useQuery({ |
| 603 | queryKey: ["project", projectId], |
| 604 | queryFn: () => fetchProject(projectId), |
| 605 | staleTime: 60_000, |
| 606 | }); |
| 607 | } |
| 608 | |
| 609 | export function useRepoStateQuery(project: Project | null | undefined) { |
| 610 | return useQuery({ |
no test coverage detected