From bc2149c66ddb0b59e304fc5a9f38df1c8311c3d9 Mon Sep 17 00:00:00 2001
From: Tunglies <77394545+Tunglies@users.noreply.github.com>
Date: Wed, 3 Jun 2026 21:56:33 +0800
Subject: [PATCH] fix(logs): stop always keeping logs route mounted
---
src/pages/_layout.tsx | 5 +----
src/pages/_routers.tsx | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/pages/_layout.tsx b/src/pages/_layout.tsx
index 763e8dc83..ecdce94b4 100644
--- a/src/pages/_layout.tsx
+++ b/src/pages/_layout.tsx
@@ -121,8 +121,6 @@ const Layout = () => {
const navigate = useNavigate()
const { pathname } = useLocation()
const isLogsPage = pathname === '/logs'
- const logsPageMountedRef = useRef(false)
- if (isLogsPage) logsPageMountedRef.current = true
const themeReady = useMemo(() => Boolean(theme), [theme])
const [menuUnlocked, setMenuUnlocked] = useState(false)
@@ -455,7 +453,7 @@ const Layout = () => {