Skip to content

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

fix comments

Jonathan Summers-Muir49f303909970
diff --git a/apps/docs/pages/_app.tsx b/apps/docs/pages/_app.tsx
index b4368d4804f..531d130399b 100644
--- a/apps/docs/pages/_app.tsx
+++ b/apps/docs/pages/_app.tsx
@@ -62,9 +62,8 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
useEffect(() => {
/**
* Send page telemetry on first page load
- * if the route is not ready. Don't need to send it will be picked up by router.event above
*/
- if (router.isReady) {
+ if (router.route) {
handlePageTelemetry(router.route)
}
}, [])
diff --git a/apps/www/pages/_app.tsx b/apps/www/pages/_app.tsx
index 5bd1a514ed0..6289c19bdf1 100644
--- a/apps/www/pages/_app.tsx
+++ b/apps/www/pages/_app.tsx
@@ -35,9 +35,8 @@ export default function MyApp({ Component, pageProps }: AppProps) {
useEffect(() => {
/**
* Send page telemetry on first page load
- * if the route is not ready. Don't need to send it will be picked up by router.event above
*/
- if (router.isReady) {
+ if (router.route) {
handlePageTelemetry(router.route)
}
}, [])