Skip to content
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

Redirection away from and back to route fails to cancel navigation #3133

Closed
luxaritas opened this issue Feb 25, 2020 · 1 comment
Closed
Labels
bug fixed on 4.x This issue has been already fixed on the v4 but exists in v3

Comments

@luxaritas
Copy link

luxaritas commented Feb 25, 2020

Version

3.1.3

Reproduction link

https://codepen.io/luxaritas/pen/WNvRagw?editors=1010

Steps to reproduce

  • Run a long async function within a route guard
  • Start at route A, navigate to route B, and then back to A again before the guard for B resolves

What is expected?

Navigation to route B is cancelled, or at least completed and re-routed to route A

What is actually happening?

NavigationDuplicated is thrown, and the page navigates to and stays on route B

@posva posva added the bug label Feb 25, 2020
@posva
Copy link
Member

posva commented Feb 25, 2020

This could be technically a breaking change but I don't see a reason to not cancel ongoing navigation when trying to navigate to the same location

@posva posva added the fixed on 4.x This issue has been already fixed on the v4 but exists in v3 label Sep 24, 2020
@posva posva closed this as completed in 893d86b Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fixed on 4.x This issue has been already fixed on the v4 but exists in v3
Projects
None yet
Development

No branches or pull requests

2 participants