From 18b00f7b28d0b676b42a3ec6499d3d1e2abbdae5 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 22 Oct 2023 19:25:22 +0800 Subject: [PATCH] Fix link useTitle showing errors --- src/app.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app.jsx b/src/app.jsx index 03554578..5b03521a 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -209,10 +209,10 @@ function App() { }, []); let location = useLocation(); - // states.currentLocation = location.pathname; - useLayoutEffect(() => { - states.currentLocation = location.pathname; - }, [location.pathname]); + states.currentLocation = location.pathname; + // useLayoutEffect(() => { + // states.currentLocation = location.pathname; + // }, [location.pathname]); useEffect(focusDeck, [location, isLoggedIn]);