Skip to content

Commit 17b3538

Browse files
committed
frontend: keep app shell visible during auth loading
1 parent e5b3fcc commit 17b3538

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/app/AppShell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ function AuthGate({ children }: { children: React.ReactNode }) {
6868
)
6969

7070
if (user) return <>{children}</>
71-
// First visit auth loading.
72-
if (loading) return renderGateStatus("Checking your session...")
71+
// Keep existing shell visible during transient auth loading (prevents sidebar flicker/disappear).
72+
if (loading) return <>{children}</>
7373
// Not authenticated, redirecting away from dashboard.
7474
if (!user) return renderGateStatus("Redirecting to sign-in...")
7575
return <>{children}</>

0 commit comments

Comments
 (0)