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(); let location = useLocation();
// states.currentLocation = location.pathname; states.currentLocation = location.pathname;
useLayoutEffect(() => { // useLayoutEffect(() => {
states.currentLocation = location.pathname; // states.currentLocation = location.pathname;
}, [location.pathname]); // }, [location.pathname]);
useEffect(focusDeck, [location, isLoggedIn]); useEffect(focusDeck, [location, isLoggedIn]);