From 664d8a158687dcbf5e101bef441658d1d8dbd38c Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Thu, 14 Jul 2022 10:31:03 +1000 Subject: [PATCH] fix: remove useEffect that is no longer needed --- apps/www/pages/_app.tsx | 9 --------- 1 file changed, 9 deletions(-) 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()