-
Notifications
You must be signed in to change notification settings - Fork 26.3k
fix(router): Prevent dangling promise rejections from internal naviga… #60162
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
Conversation
Moving to target major. Unsurprisingly this causes tests to fail that are mocking the router. This will not be considered a breaking change but still might as well move it to major to avoid breaking tests in patch. That said though, TGP will determine whether this is even able to land as-is. Potentially, this will need to have |
Adding blocked, as this change will require further discussion. Developers using ZoneJS indirectly rely on the rejection to report to |
0e8ebf5
to
3acf97a
Compare
…tions Though the plan is to change the default behavior or the router to instead resolve the navigation promise with `false` to match all other failed navigations, we should still prevent dangling promise rejections from navigations triggered internally when developers opt to use the old (current) behavior.
3acf97a
to
b90ba51
Compare
caretaker note: This change now has a green TGP after ~5 fixes to tests in g3. A few were spying on |
This PR was merged into the repository by commit 219f41d. The changes were merged into the following branches: main |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…tions
Though the plan is to change the default behavior or the router to instead resolve the navigation promise with
false
to match all other failed navigations, we should still prevent dangling promise rejections from navigations triggered internally when developers opt to use the old (current) behavior.