-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnItemClick
stored in ReplaySubject
cause logout right after login
#695
Comments
my solution is to ignore replay with out user interaction
i hope it helps someone. |
I had the exact same problem. |
@thom7kick could you plz provide me some more detailed explanation of the solution :/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
@nnixaa I am subscribing to
onItemClick
then logout from the logout menu item is selected.it successfully logs but on login again the
onItemClick
is triggered therefore logs outuser immediately. That's because from the code the clicked items are stored in
ReplaySubject
Expected behavior:
i want on logout the
ReplaySubject
cache to be cleared out.Steps to reproduce:
May be add an option to pass a null value as the last clicked item, so that the user has
an option to pass null menu item. so when the subscription picks up the replay it won't do anything.
Related code:
Other information:
Angular, Nebular
The text was updated successfully, but these errors were encountered: