Skip to content

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

fix: remove useEffect

Jonathan Summers-Muir5ff299e43f3d
diff --git a/studio/components/ui/PageTelemetry.tsx b/studio/components/ui/PageTelemetry.tsx
index b93bcfd3fb8..f76a9981e94 100644
--- a/studio/components/ui/PageTelemetry.tsx
+++ b/studio/components/ui/PageTelemetry.tsx
@@ -12,15 +12,6 @@ const PageTelemetry: FC = ({ children }) => {
const { ui } = useStore()
const { profile } = ui
- useEffect(() => {
- // `routeChangeComplete` won't run for the first page load unless the query string is
- // hydrated later on, so here we log a page view if this is the first render and
- // there's no query string
- if (!router.asPath.includes('[') && !router.asPath.includes(']')) {
- handlePageTelemetry(profile)
- }
- }, [profile])
-
useEffect(() => {
function handleRouteChange() {
handlePageTelemetry(profile)