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
{{ message }}
Repository navigation
Unsubscribe from routing guards as soon as one of them returns false聽#36538
If you write it like that, and all 3 guards return false, you get 3 redirects. And if redirect AddressRequired wins, that routes LoginRequired will execute again.
Reproduction: https://ng-run.com/edit/uFlyQUYoejI0PkJhBUnm
Open the browser devtools console and then click the link to navigate to the blocked route to see the order of execution of the guards.
Describe the solution you'd like
If a guard returns false, unsubscribe from previous guards and don't even execute remaining guards.
changed the title [-]Unsubscribe from routing guards as soon as one of them already returns false[/-][+]Unsubscribe from routing guards as soon as one of them returns false[/+]on Apr 9, 2020
Activity
[-]Unsubscribe from routing guards as soon as one of them already returns false[/-][+]Unsubscribe from routing guards as soon as one of them returns false[/+]angular-automatic-lock-bot commentedon Feb 9, 2021
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.