mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-31 11:01:35 +02:00
Fix link useTitle showing errors
This commit is contained in:
parent
a6cdd0a01a
commit
18b00f7b28
1 changed files with 4 additions and 4 deletions
|
@ -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]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue