Title: With InitialNavigation.enabledBlocking the initial navigation doesn't get completed · Issue #49567 · angular/angular · GitHub
Open Graph Title: With InitialNavigation.enabledBlocking the initial navigation doesn't get completed · Issue #49567 · angular/angular
X Title: With InitialNavigation.enabledBlocking the initial navigation doesn't get completed · Issue #49567 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If I use InitialNavigation.enabledBlocking in my router config the initial navigation doesn't get completed. The reason for this is the mi...
Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If I use InitialNavigation.enabledBlocking in my router config the initial navigation doesn't get ...
X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If I use InitialNavigation.enabledBlocking in my router config the initial navigation doesn't ...
Opengraph URL: https://github.com/angular/angular/issues/49567
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"With InitialNavigation.enabledBlocking the initial navigation doesn't get completed","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\nNo\r\n\r\n### Description\r\n\r\nIf I use InitialNavigation.enabledBlocking in my router config the initial navigation doesn't get completed.\r\nThe reason for this is the missing call of complete() here:\r\n\r\n```\r\nif (!bootstrapDone.closed) {\r\n bootstrapDone.next();\r\n bootstrapDone.unsubscribe();\r\n}\r\n```\r\n\r\nhttps://github.com/angular/angular/blob/main/packages/router/src/provide_router.ts#L214\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\nhttps://github.com/trochol/enabled-blocking\r\n\r\n### Please provide the exception or error you saw\r\n\r\nIn the reproduction of this bug the currentNavigation is returned in ngOnInit of the page-one component.\r\nIf the router config is changed to InitialNavigation.enabledNonBlocking the request of the currentNavigation returns null.\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n```true\r\nAngular CLI: 15.1.6\r\nNode: 16.14.2\r\nPackage Manager: npm 8.18.0\r\nOS: win32 x64\r\n\r\nAngular: 15.2.4\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1502.4\r\n@angular-devkit/build-angular 15.2.4\r\n@angular-devkit/core 15.2.4\r\n@angular-devkit/schematics 15.1.6\r\n@angular/cli 15.1.6\r\n@schematics/angular 15.1.6\r\nrxjs 7.8.0\r\ntypescript 4.9.5\r\n```\r\n\r\n\r\n### Anything else?\r\n\r\n_No response_","author":{"url":"https://github.com/trochol","@type":"Person","name":"trochol"},"datePublished":"2023-03-23T12:59:57Z","url":"https://github.com/angular/angular/issues/49567"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6147794e-6c92-a3e0-1ce5-fa48af6f2364 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D50:33D24F:BD7A84:F42922:6B00FF8F |
| html-safe-nonce | 480b769e6b616e5b38d2427667a3aac37febf78ccd0d784f3ab083f2c1e9380a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDUwOjMzRDI0RjpCRDdBODQ6RjQyOTIyOjZCMDBGRjhGIiwidmlzaXRvcl9pZCI6IjY0OTA5NTY4MTE3ODc2MzI1MjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0ed65709a053cd0772a8e630d6e46b36d5f06d7fa180407b284f3106dd46c855 |
| hovercard-subject-tag | issue:1637500578 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/49567/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1791bf052e87d76637baf56a366cc3e35ed296b52ba155d0f6de1a808fd589e2/angular/angular/issues/49567 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1791bf052e87d76637baf56a366cc3e35ed296b52ba155d0f6de1a808fd589e2/angular/angular/issues/49567 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description If I use InitialNavigation.enabledBlocking in my router config the initial navigation doesn't get ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trochol |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width