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

@@ -22,7 +22,7 @@ export default function LoadingOverlay({
}, [])
const content = (
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-white dark:bg-neutral-950 animate-in fade-in duration-200">
<div className="fixed inset-0 z-[9999] flex items-center justify-center bg-white dark:bg-neutral-950">
<div className="flex flex-col items-center gap-6">
<div className="flex items-center gap-3">
<img

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)