mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 04:08:32 +03: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();
|
||||
// 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]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue