fix(loading): remove animation from LoadingOverlay for improved performance
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user