Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

chore: don't prefetch log requests count and project log status (#34625)

Alaister Youngb0837d3e7359
diff --git a/apps/studio/data/prefetchers/project.$ref.tsx b/apps/studio/data/prefetchers/project.$ref.tsx
index 052e06e7eec..8709c0f2d6d 100644
--- a/apps/studio/data/prefetchers/project.$ref.tsx
+++ b/apps/studio/data/prefetchers/project.$ref.tsx
@@ -2,8 +2,6 @@ import { useQueryClient } from '@tanstack/react-query'
import { useRouter } from 'next/router'
import { PropsWithChildren, useCallback } from 'react'
-import { prefetchProjectLogRequestsCount } from 'data/analytics/project-log-requests-count-query'
-import { prefetchProjectLogStats } from 'data/analytics/project-log-stats-query'
import { prefetchProjectDetail } from 'data/projects/project-detail-query'
import PrefetchableLink, { PrefetchableLinkProps } from './PrefetchableLink'
@@ -22,19 +20,6 @@ export function usePrefetchProjectIndexPage() {
}).catch(() => {
// eat prefetching errors as they are not critical
})
-
- prefetchProjectLogRequestsCount(queryClient, {
- projectRef,
- }).catch(() => {
- // eat prefetching errors as they are not critical
- })
-
- prefetchProjectLogStats(queryClient, {
- projectRef,
- interval: 'hourly',
- }).catch(() => {
- // eat prefetching errors as they are not critical
- })
},
[queryClient, router]
)