Skip to content

Comments

Fix UI not updating after first login on cold start#651

Merged
ChemMitch merged 1 commit intodevelopment_3.0from
iaro_rbac-login-fix
Feb 10, 2026
Merged

Fix UI not updating after first login on cold start#651
ChemMitch merged 1 commit intodevelopment_3.0from
iaro_rbac-login-fix

Conversation

@iaromoskviak
Copy link
Collaborator

Fixes a cold-start timing issue where login succeeded but the UI did not update until a manual refresh.

On initial load, auth and privilege state were not propagated reactively, causing the header and privilege-based menus to render as unauthenticated. This was due to late auth subscriptions, non-replayed auth events, and privilege checks throwing during initialization.

Fixes:

  1. Fetching privileges immediately after successful login
  2. Make privilege loading non-throwing on cold start
  3. Subscribe to auth state early and recompute privileges reactively
  4. Using BehaviorSubject for auth to support late subscribers
  5. Simplifying getAuth() to expose a stable auth stream

@ChemMitch ChemMitch merged commit 70568fe into development_3.0 Feb 10, 2026
3 of 10 checks passed
@ChemMitch ChemMitch deleted the iaro_rbac-login-fix branch February 10, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants