From b8b0908b29ff860c4cd318492b71ddf67af41e1a Mon Sep 17 00:00:00 2001 From: saeidex Date: Fri, 6 Dec 2024 23:18:21 +0600 Subject: [PATCH] Revert "fix(next): hydration error on test page" This reverts commit b86c06e1ab857571a995191a4ea967bec8a2409a. --- apps/next/src/app/dashboard/test/[busId]/page.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/next/src/app/dashboard/test/[busId]/page.tsx b/apps/next/src/app/dashboard/test/[busId]/page.tsx index faa3d3d..67a610e 100644 --- a/apps/next/src/app/dashboard/test/[busId]/page.tsx +++ b/apps/next/src/app/dashboard/test/[busId]/page.tsx @@ -1,7 +1,5 @@ "use client"; -import { useEffect, useState } from "react"; - import { useBusLocationQuery } from "@ubus/mqtt"; interface BusLocationPageProps { @@ -11,14 +9,6 @@ interface BusLocationPageProps { } const BusLocationPage = (props: BusLocationPageProps) => { - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(true); - }, []); - - if (!mounted) return null; - return (

Bus Location