Fix link useTitle showing errors

This commit is contained in:
Lim Chee Aun 2023-10-22 19:25:22 +08:00
parent a6cdd0a01a
commit 18b00f7b28

View file

@ -209,10 +209,10 @@ function App() {
}, []);
let location = useLocation();
// states.currentLocation = location.pathname;
useLayoutEffect(() => {
states.currentLocation = location.pathname;
}, [location.pathname]);
// useLayoutEffect(() => {
// states.currentLocation = location.pathname;
// }, [location.pathname]);
useEffect(focusDeck, [location, isLoggedIn]);