Title: Dynamic components aren't hydrated when appModule bootstrap AppComponent · Issue #51535 · angular/angular · GitHub
Open Graph Title: Dynamic components aren't hydrated when appModule bootstrap AppComponent · Issue #51535 · angular/angular
X Title: Dynamic components aren't hydrated when appModule bootstrap AppComponent · Issue #51535 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description After one month chasing this issue. I think I can finally reach it. @AndrewKushnir Example 1: link: https://codesandbox.io/p/sandbox/unruffl...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description After one month chasing this issue. I think I can finally reach it. @AndrewKushnir Example 1: link: ...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description After one month chasing this issue. I think I can finally reach it. @AndrewKushnir Example 1: link: ...
Opengraph URL: https://github.com/angular/angular/issues/51535
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamic components aren't hydrated when appModule bootstrap AppComponent","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nNo\n\n### Description\n\nAfter one month chasing this issue. I think I can finally reach it. @AndrewKushnir \r\n## Example 1:\r\nlink: https://codesandbox.io/p/sandbox/unruffled-dawn-dngll7\r\n\r\nPreviously, this issue https://github.com/angular/angular/issues/51157 does show that dynamic component aren't hydrated and his example give 2 instance, because he have bootstrap on app.module.ts and it show 2 instance:\r\n\r\n\r\n## Example 2:\r\nlink: https://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.module.ts:1,1\r\nI accident commend on bootstrap row in app.module.ts and it does not show error but give expect answer:\r\n\r\nAfter that I think we fix that issue and case close\r\n\r\n## Example 3: \r\nlink: https://codesandbox.io/p/sandbox/sharp-gagarin-j9ycmg?file=/src/app/app.component.ts:24,14\r\n\r\nI still get the flick and it still a really annoy issue. So I decide to reproduce my closest behavior on my production repo. So it little different but basicly same with example 2. Just only one think, I did not accident commend and now it alway render browser instead of reuse variable hydrated from server.\r\n\r\n\r\n\r\n\r\nright now I have the same issue with the new reproduce with createComponent function. And I realize that problem come from bootstrap: [AppComponent] is open or not. I think it is important and require because my project instant dead if I commend this.\r\n\r\n\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://codesandbox.io/p/sandbox/sharp-gagarin-j9ycmg?file=/src/app/navbar.component.ts:8,26\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\n\"dependencies\": {\r\n \"@angular/animations\": \"^16.2.0\",\r\n \"@angular/common\": \"^16.2.0\",\r\n \"@angular/compiler\": \"^16.2.0\",\r\n \"@angular/core\": \"^16.2.0\",\r\n \"@angular/forms\": \"^16.2.0\",\r\n \"@angular/platform-browser\": \"^16.2.0\",\r\n \"@angular/platform-browser-dynamic\": \"^16.2.0\",\r\n \"@angular/platform-server\": \"^16.2.0\",\r\n \"@angular/router\": \"^16.2.0\",\r\n \"@nguniversal/express-engine\": \"^16.1.3\",\r\n \"express\": \"^4.15.2\",\r\n \"rxjs\": \"~7.8.0\",\r\n \"tslib\": \"^2.3.0\",\r\n \"zone.js\": \"~0.13.0\"\r\n },\r\n \"devDependencies\": {\r\n \"@angular-devkit/build-angular\": \"^16.1.1\",\r\n \"@angular/cli\": \"~16.2.0\",\r\n \"@angular/compiler-cli\": \"^16.2.0\",\r\n \"@nguniversal/builders\": \"^16.1.2\",\r\n \"@types/express\": \"^4.17.0\",\r\n \"@types/jasmine\": \"~4.3.0\",\r\n \"@types/node\": \"^14.15.0\",\r\n \"jasmine-core\": \"~4.6.0\",\r\n \"karma\": \"~6.4.0\",\r\n \"karma-chrome-launcher\": \"~3.2.0\",\r\n \"karma-coverage\": \"~2.2.0\",\r\n \"karma-jasmine\": \"~5.1.0\",\r\n \"karma-jasmine-html-reporter\": \"~2.0.0\",\r\n \"typescript\": \"~5.0.2\"\r\n }\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/hiepxanh","@type":"Person","name":"hiepxanh"},"datePublished":"2023-08-28T14:44:56Z","url":"https://github.com/angular/angular/issues/51535"}
| 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:29b7d478-1261-a0f6-a051-15717beaf6b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C076:361639:16586C4:1DCB84E:6B013FB2 |
| html-safe-nonce | f5fcad174eb654b945616e186bc01fc1a1a30cf24bc82a6b76ccbb1403069a8c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDc2OjM2MTYzOToxNjU4NkM0OjFEQ0I4NEU6NkIwMTNGQjIiLCJ2aXNpdG9yX2lkIjoiMzI0MjI0NzA3NTI2MTM5ODk2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9cdb3766b2467c5e8ad2ede0f0d999e187de805be263e1cc6155d1d69118f5ad |
| hovercard-subject-tag | issue:1869909608 |
| 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/51535/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bce7014d86e3455c53069c3bcc03d9d7b8de88d5e2733fad32f208eeb8b30c42/angular/angular/issues/51535 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bce7014d86e3455c53069c3bcc03d9d7b8de88d5e2733fad32f208eeb8b30c42/angular/angular/issues/51535 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description After one month chasing this issue. I think I can finally reach it. @AndrewKushnir Example 1: link: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hiepxanh |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width