fix: remove useEffect that is no longer needed

This commit is contained in:
Jonathan Summers-Muir committed 2022-07-14 10:31:03 +10:00
1 parent 734346205e
commit 664d8a1586
1 file changed
-9
-9
View File
@@ -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()