René's URL Explorer Experiment


Title: Router events doesn't emit NavigationEnd event if previous navigation was cancelled · Issue #48052 · angular/angular · GitHub

Open Graph Title: Router events doesn't emit NavigationEnd event if previous navigation was cancelled · Issue #48052 · angular/angular

X Title: Router events doesn't emit NavigationEnd event if previous navigation was cancelled · Issue #48052 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description There's bug in Angular@>=14.0.5, where router.events doesn't emit NavigationEnd event if navigation was triggered while other was in prog...

Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description There's bug in Angular@>=14.0.5, where router.events doesn't emit NavigationEnd event if navigati...

X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description There's bug in Angular@>=14.0.5, where router.events doesn't emit NavigationEnd event ...

Opengraph URL: https://github.com/angular/angular/issues/48052

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Router events doesn't emit NavigationEnd event if previous navigation was cancelled","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\nrouter\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\n- There's bug in Angular@>=14.0.5, where `router.events` doesn't emit `NavigationEnd` event if navigation was triggered while other was in progress, in addition to that it won't even update the url with the new value\r\n\r\n- This bug happens when trying to do router navigation while other navigation is in progress\r\n- Happens only if router config has set `initialNavigation: 'enabledBlocking'`\r\n- This bug was introduced in [Angular@14.0.5](https://github.com/angular/angular/blob/main/CHANGELOG.md#1405-2022-07-06) which has only this [single MR](https://github.com/angular/angular/pull/46634) merged\r\n\r\n### How to reproduce: (pretty easily)\r\n- Try to do `router.navigate()` inside `ngOnInit()` hook in root component (AppComponent)\r\n\r\n### Minimal reproduction:\r\n\r\n[14.0.5 - bug introduced](https://stackblitz.com/edit/angular-ivy-vvsqhn)\r\n - In the console you can see events emitted in following order:\r\n 1. NavigationStart (first app navigation)\r\n 2. (RoutesRecognized, GuardsCheckStart, GuardsCheckEnd)\r\n 3. AppComponent#ngOnInit navigation triggered\r\n 4. NavigationCancel\r\n 5. NavigationStart\r\n 6. (RoutesRecognized, GuardsCheckStart, GuardsCheckEnd)\r\n - On the 7th step I would expect NavigationEnd should be emitted, so I would know that router navigation has been finished, otherwise I'm not able to know that\r\n \r\n [14.0.4 - working correctly](https://stackblitz.com/edit/angular-ivy-ubquwv)\r\n - In the console you can see events emitted in following order:\r\n 1. NavigationStart (first app navigation)\r\n 2. (RoutesRecognized, GuardsCheckStart, GuardsCheckEnd)\r\n 3. AppComponent#ngOnInit navigation triggered\r\n 4. NavigationCancel\r\n 5. NavigationStart\r\n 6. (RoutesRecognized, GuardsCheckStart, GuardsCheckEnd)\r\n 7. Navigation End & Scroll\r\n - As you see, in this version it correctly emits NavigationEnd event so I know, that navigation has been finished\r\n\r\n\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nSee in description\r\n\r\n### Please provide the exception or error you saw\r\n\r\nNo error/exception is being thrown\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: >= 14.0.5\r\nNode: 18.10.0\r\nPackage Manager: npm@8.19.2\r\nOS: Windows 11 64bit\r\nAll Angular packages version: >= 14.0.5\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n- If this change was intended, can anyone suggest, how can I in this case know, when the navigation has been finished?","author":{"url":"https://github.com/Roman-Simik","@type":"Person","name":"Roman-Simik"},"datePublished":"2022-11-14T18:53:52Z","url":"https://github.com/angular/angular/issues/48052"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a9ec1f22-f42d-10f7-b4ff-add157cd31a5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE0F4:1F44:B932F2:F2AD87:6B01188E
html-safe-noncece64a214395300e8e2ef954ccd3d47d78c07b6919e88a224c2469c161b4f4d89
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEY0OjFGNDQ6QjkzMkYyOkYyQUQ4Nzo2QjAxMTg4RSIsInZpc2l0b3JfaWQiOiI0MDU3MTI2MTAwNzMwNDUyMTEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac788965f6922db9c8d3d5a37a68683bcc1942faaafca55e93efb656606f97b8d9
hovercard-subject-tagissue:1448571938
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/48052/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a463549b13bb9a5759f1618d8e8efe881f5528038f4f3bd78c311a80ca65059a/angular/angular/issues/48052
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a463549b13bb9a5759f1618d8e8efe881f5528038f4f3bd78c311a80ca65059a/angular/angular/issues/48052
og:image:altWhich @angular/* package(s) are the source of the bug? router Is this a regression? Yes Description There's bug in Angular@>=14.0.5, where router.events doesn't emit NavigationEnd event if navigati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRoman-Simik
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/48052#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F48052
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F48052
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/48052
Reloadhttps://github.com/angular/angular/issues/48052
Reloadhttps://github.com/angular/angular/issues/48052
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/48052
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/48052
Router events doesn't emit NavigationEnd event if previous navigation was cancelledhttps://github.com/angular/angular/issues/48052#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/Roman-Simik
Roman-Simikhttps://github.com/Roman-Simik
on Nov 14, 2022https://github.com/angular/angular/issues/48052#issue-1448571938
Angular@14.0.5https://github.com/angular/angular/blob/main/CHANGELOG.md#1405-2022-07-06
single MRhttps://github.com/angular/angular/pull/46634
14.0.5 - bug introducedhttps://stackblitz.com/edit/angular-ivy-vvsqhn
14.0.4 - working correctlyhttps://stackblitz.com/edit/angular-ivy-ubquwv
jessicajaniukhttps://github.com/jessicajaniuk
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Nov 14, 2022https://github.com/angular/angular/issues/48052#event-7807430196
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 14, 2022https://github.com/angular/angular/issues/48052#event-7807430365
https://github.com/Treen11
Treen11https://github.com/Treen11
on Nov 15, 2022https://github.com/angular/angular/issues/48052#issuecomment-1315008281
https://github.com/salopa
salopahttps://github.com/salopa
on Nov 15, 2022https://github.com/angular/angular/issues/48052#issuecomment-1315050152
https://github.com/atscott
atscotthttps://github.com/atscott
on Nov 15, 2022https://github.com/angular/angular/issues/48052#issuecomment-1315564938
atscotthttps://github.com/atscott
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
on Nov 15, 2022https://github.com/angular/angular/issues/48052#event-7816040535
jessicajaniukhttps://github.com/jessicajaniuk
on Nov 15, 2022https://github.com/angular/angular/issues/48052#event-7817766937
fix(router): Ensure renavigating in component init works with enabled…https://github.com/angular/angular/commit/aef353c143ea4e31d76f00ae91efe49eecc3a321
https://docs.github.com/articles/closing-issues-via-commit-messages
aef353chttps://github.com/angular/angular/commit/aef353c143ea4e31d76f00ae91efe49eecc3a321
alxhubhttps://github.com/alxhub
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
on Nov 16, 2022https://github.com/angular/angular/issues/48052#event-7825673832
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Nov 16, 2022https://github.com/angular/angular/issues/48052#event-7825674166
dylhunnhttps://github.com/dylhunn
on Nov 17, 2022https://github.com/angular/angular/issues/48052#event-7836854951
fix(router): Ensure renavigating in component init works with enabled…https://github.com/angular/angular/commit/9baefd085fb079c312c4c03d79775a0fcff933b9
https://docs.github.com/articles/closing-issues-via-commit-messages
9baefd0https://github.com/angular/angular/commit/9baefd085fb079c312c4c03d79775a0fcff933b9
dylhunnhttps://github.com/dylhunn
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
1df0ed7https://github.com/angular/angular/commit/1df0ed7d6e636d921ad617465c3956dc1b6292eb
on Nov 17, 2022https://github.com/angular/angular/issues/48052#event-7836855169
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 18, 2022https://github.com/angular/angular/issues/48052#issuecomment-1356828824
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Dec 18, 2022https://github.com/angular/angular/issues/48052#event-8064186115
trekladyonehttps://github.com/trekladyone
on Feb 1, 2023https://github.com/angular/angular/issues/48052#event-8415358308
fix(router): Ensure renavigating in component init works with enabled…https://github.com/trekladyone/angular/commit/03edc0beeebec0af092d2963f136617407c01c4f
https://docs.github.com/articles/closing-issues-via-commit-messages
03edc0bhttps://github.com/trekladyone/angular/commit/03edc0beeebec0af092d2963f136617407c01c4f
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/48052
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/48052
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.