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 that is no longer needed

Jonathan Summers-Muir664d8a158687
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 9f6c1479191..59c4f4d71ea 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -18,15 +18,6 @@ export default function MyApp({ Component, pageProps }: AppProps) {
})
}
- 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('?')) {
- telemetry()
- }
- }, [])
-
useEffect(() => {
function handleRouteChange() {
telemetry()