feat: Implement useImageStatus hook and enhance image loading status handling across various components to address cached images and loading timeouts.
This commit is contained in:
@@ -35,6 +35,9 @@ export default function LogoutPage() {
|
||||
// Delete cookies again after signOut in case signOut recreated any
|
||||
await clearAuthCookies();
|
||||
|
||||
// Clear the logout flag before redirecting so it doesn't block API calls on public pages
|
||||
localStorage.removeItem('isLoggingOut');
|
||||
|
||||
// Redirect to login immediately
|
||||
window.location.href = '/login';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user