(queryClient: QueryClient, logId: string, workspaceId: string)
| 222 | } |
| 223 | |
| 224 | export function prefetchLogDetail(queryClient: QueryClient, logId: string, workspaceId: string) { |
| 225 | queryClient.prefetchQuery({ |
| 226 | queryKey: logKeys.detail(workspaceId, logId), |
| 227 | queryFn: ({ signal }) => fetchLogDetail(logId, workspaceId, signal), |
| 228 | staleTime: 30 * 1000, |
| 229 | }) |
| 230 | } |
| 231 | |
| 232 | async function fetchDashboardStats( |
| 233 | workspaceId: string, |
no test coverage detected