exhaustive-deps

This commit is contained in:
Manav Rathi 2024-11-26 18:01:55 +05:30
parent e5a43e9738
commit b1af3dbabd
No known key found for this signature in database

View File

@ -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("/"));