exhaustive-deps
This commit is contained in:
@@ -79,7 +79,7 @@ const App: React.FC<AppProps> = ({ Component, pageProps }) => {
|
||||
window.removeEventListener("online", setUserOnline);
|
||||
window.removeEventListener("offline", setUserOffline);
|
||||
};
|
||||
}, []);
|
||||
}, [router]);
|
||||
|
||||
const logout = useCallback(() => {
|
||||
void accountLogout().then(() => window.location.replace("/"));
|
||||
|
||||
Reference in New Issue
Block a user