mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
fix: remove useEffect that is no longer needed
This commit is contained in:
1 parent
734346205e
commit
664d8a1586
1 file changed
-9
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user