fix(loading): remove animation from LoadingOverlay for improved performance

This commit is contained in:
Usman Baig
2026-01-22 16:30:29 +01:00
parent a5be0fba74
commit ef43c7376a
2 changed files with 3 additions and 2 deletions

View File

@@ -136,7 +136,8 @@ export function AuthProvider({ children }: { children: React.ReactNode }) {
// * Force hard reload to ensure browser sends new cookie to backend
// * router.refresh() is not enough for Client Components fetching data immediately
window.location.reload()
// window.location.reload()
router.refresh()
}
} catch (e) {
console.error('Failed to auto-switch context', e)