You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing something a bit odd which doesn't make any sense immediately. I have a single-page-app (no hard page-loads ever) on which I perform the following to produce state staleness in $rootScope.user
Join (Register) a new user and hit a landing page
Validate $rootScope.user contains the new user information
Sign out
Login with a separate, pre-existing user
Validate that $rootScope.user contains the old, recently-registered user information rather than the user just logged in as
The same does not appear to be happening when logging out / logging back in with existing users.
Re-assigning $rootScope.user = @user within handleValidAuth seems to fix the underlying problem, but I don't see why the same corruption isn't happening on multiple login / logouts. Admittedly, I haven't jumped into it much, as relying on $auth.user in my client code is sufficient to keep things in sync properly.
Might be sufficient to just eliminate $rootScope.user and let people manually assign that value (if needed), rather than keep it in sync with $auth.user.
The text was updated successfully, but these errors were encountered:
hey @lynndylanhurley .. let me save you some time. Looks like we were clobbering that $rootScope value elsewhere under certain circumstances. Closing this!
Hey @lynndylanhurley -
Seeing something a bit odd which doesn't make any sense immediately. I have a single-page-app (no hard page-loads ever) on which I perform the following to produce state staleness in
$rootScope.user
The same does not appear to be happening when logging out / logging back in with existing users.
Re-assigning
$rootScope.user = @user
withinhandleValidAuth
seems to fix the underlying problem, but I don't see why the same corruption isn't happening on multiple login / logouts. Admittedly, I haven't jumped into it much, as relying on$auth.user
in my client code is sufficient to keep things in sync properly.Might be sufficient to just eliminate
$rootScope.user
and let people manually assign that value (if needed), rather than keep it in sync with$auth.user
.The text was updated successfully, but these errors were encountered: