← Back to Changelog
Bug FixApril 18, 2026
eliminate auth redirect race with tri-state AuthStatus
- Replaces boolean auth guards with tri-state
AuthStatus(loading|authenticated|unauthenticated) to eliminate the first-render redirect race on hard refresh. ProtectedRouterewritten to consumestatus, with new props:requireStaff,returnUrl,loginPath,fallback. Adopted by/platform,/organizations,/setup.- Tenant layout + community layout switched to
authStatusviaCommunityContext. - Adds an 11-case vitest suite for
ProtectedRoute.
