René's URL Explorer Experiment


Title: Dynamic components aren't hydrated when root component is used as an anchor · Issue #51157 · angular/angular · GitHub

Open Graph Title: Dynamic components aren't hydrated when root component is used as an anchor · Issue #51157 · angular/angular

X Title: Dynamic components aren't hydrated when root component is used as an anchor · Issue #51157 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description As in the linked reproduction, I'm dynamically creating a component like so: import('./foo/foo.component').then((m) => { this.vc...

Open Graph Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description As in the linked reproduction, I'm dynamically creating a component like so: import('./f...

X Description: Which @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description As in the linked reproduction, I'm dynamically creating a component like so: import(...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamic components aren't hydrated when root component is used as an anchor","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nplatform-browser\n\n### Is this a regression?\n\nNo\n\n### Description\n\nAs in the linked reproduction, I'm dynamically creating a component like so:\r\n\r\n```\r\nimport('./foo/foo.component').then((m) => {\r\n  this.vcr.createComponent(m.FooComponent);\r\n});\r\n```\r\n\r\nThe component correctly appears in the SSR output. However, Angular does not appear to hydrate the component. Instead, it creates a _new_ instance, and leaves the existing copy in the DOM dehydrated (and thus, broken), even after hydration completes.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://codesandbox.io/p/sandbox/unruffled-dawn-dngll7\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_No response_\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/devknoll","@type":"Person","name":"devknoll"},"datePublished":"2023-07-24T16:22:02Z","url":"https://github.com/angular/angular/issues/51157"}

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:979f0617-d607-b093-f3f8-023b98d7377b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA470:E9D16:6B4A05:87A14E:6B0116BC
html-safe-nonceb289aee43f2f08a62c24f12de8bb3b4339d53bd1bdf2fd483fff1b5bfa15d1e1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDcwOkU5RDE2OjZCNEEwNTo4N0ExNEU6NkIwMTE2QkMiLCJ2aXNpdG9yX2lkIjoiMjQ3NzU1MDIyNDM0MDQ4OTkxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac458c950d9ff9e80e7fcf19282cf871d0947742af2cacbf0155055e93a7b12f23
hovercard-subject-tagissue:1818745979
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/51157/issue_layout
twitter:imagehttps://opengraph.githubassets.com/db4d19aece31a0b05545f46eb597d9b1a136f2570dee62c27417c30eafe4a6d1/angular/angular/issues/51157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db4d19aece31a0b05545f46eb597d9b1a136f2570dee62c27417c30eafe4a6d1/angular/angular/issues/51157
og:image:altWhich @angular/* package(s) are the source of the bug? platform-browser Is this a regression? No Description As in the linked reproduction, I'm dynamically creating a component like so: import('./f...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedevknoll
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/51157#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F51157
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%2F51157
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/51157
Reloadhttps://github.com/angular/angular/issues/51157
Reloadhttps://github.com/angular/angular/issues/51157
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/51157
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/51157
Dynamic components aren't hydrated when root component is used as an anchorhttps://github.com/angular/angular/issues/51157#top
https://github.com/AndrewKushnir
https://github.com/jessicajaniuk
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: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: hydrationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20hydration%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/devknoll
devknollhttps://github.com/devknoll
on Jul 24, 2023https://github.com/angular/angular/issues/51157#issue-1818745979
https://codesandbox.io/p/sandbox/unruffled-dawn-dngll7https://codesandbox.io/p/sandbox/unruffled-dawn-dngll7
Nexthttps://github.com/angular/angular/issues/51157?timeline_page=1
AndrewKushnirhttps://github.com/AndrewKushnir
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9902547995
AndrewKushnirhttps://github.com/AndrewKushnir
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: hydrationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20hydration%22
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9902549289
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9902549794
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Jul 24, 2023https://github.com/angular/angular/issues/51157#issuecomment-1648276916
AndrewKushnirhttps://github.com/AndrewKushnir
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 Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9904890316
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9904890495
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Jul 24, 2023https://github.com/angular/angular/issues/51157#issuecomment-1648664873
@JeanMechehttps://github.com/JeanMeche
https://github.com/angular/angular/blob/main/packages/core/src/hydration/annotate.ts#L101-L122https://github.com/angular/angular/blob/main/packages/core/src/hydration/annotate.ts#L101-L122
AndrewKushnirhttps://github.com/AndrewKushnir
jessicajaniukhttps://github.com/jessicajaniuk
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9904975736
AndrewKushnirhttps://github.com/AndrewKushnir
on Jul 24, 2023https://github.com/angular/angular/issues/51157#event-9904984187
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Jul 24, 2023https://github.com/angular/angular/issues/51157#issuecomment-1648695304
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 1, 2023https://github.com/angular/angular/issues/51157#issuecomment-1659986026
Angular-Dynamic-Hooks/ngx-dynamic-hooks#34 (comment)https://github.com/Angular-Dynamic-Hooks/ngx-dynamic-hooks/issues/34#issuecomment-1660195606
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Aug 2, 2023https://github.com/angular/angular/issues/51157#issuecomment-1661534122
@hiepxanhhttps://github.com/hiepxanh
#51247https://github.com/angular/angular/pull/51247
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 2, 2023https://github.com/angular/angular/issues/51157#issuecomment-1661721345
@AndrewKushnirhttps://github.com/AndrewKushnir
#46473 (comment)https://github.com/angular/angular/issues/46473#issuecomment-1166174742
https://private-user-images.githubusercontent.com/16970990/257744699-b1d21b55-5eb0-42d4-b573-a05efe75cc5e.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzM3NjksIm5iZiI6MTc5NTIzMzQ2OSwicGF0aCI6Ii8xNjk3MDk5MC8yNTc3NDQ2OTktYjFkMjFiNTUtNWViMC00MmQ0LWI1NzMtYTA1ZWZlNzVjYzVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDAzNTc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIzMGZkMWIwMWFhZDJjMDhjMDcxZjdjNzE3NzJjYTc0N2EwNTc2MjhmYTMzY2VkNmFmOGU3ZWQ3NTIxZDExMmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.wRv29yWfx3PggjuVnGqU8nktsP14p18OzzLEt_VtWY4
https://private-user-images.githubusercontent.com/16970990/257746555-fe8d815a-52cf-4a38-90f9-77e47bd5526b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzM3NjksIm5iZiI6MTc5NTIzMzQ2OSwicGF0aCI6Ii8xNjk3MDk5MC8yNTc3NDY1NTUtZmU4ZDgxNWEtNTJjZi00YTM4LTkwZjktNzdlNDdiZDU1MjZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDAzNTc0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4NjFiNDA5MGFlNDU1NTNmNjY3Zjc2YTZiYzAyOGY2MzdlMjkzYjFmMzYyN2ZmODc3ZDlkNmY1ZjUzZmZkOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.xq0Pc9sUdoHeXrIMoR45_lt2m0Uh4EIrdcZXFdujakU
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Aug 2, 2023https://github.com/angular/angular/issues/51157#issuecomment-1662799908
@hiepxanhhttps://github.com/hiepxanh
dylhunnhttps://github.com/dylhunn
on Aug 7, 2023https://github.com/angular/angular/issues/51157#event-10026386559
fix(core): handle hydration of view containers for root components (#…https://github.com/angular/angular/commit/9f490da7e27e495cb45d2064af9091731422a6b1
#…https://github.com/angular/angular/pull/51247
https://docs.github.com/articles/closing-issues-via-commit-messages
9f490dahttps://github.com/angular/angular/commit/9f490da7e27e495cb45d2064af9091731422a6b1
dylhunnhttps://github.com/dylhunn
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
55965cbhttps://github.com/angular/angular/commit/55965cbf8c1caa78aad767bb291b5c603c6e3dc9
on Aug 7, 2023https://github.com/angular/angular/issues/51157#event-10026386990
https://github.com/AndrewKushnir
AndrewKushnirhttps://github.com/AndrewKushnir
on Aug 9, 2023https://github.com/angular/angular/issues/51157#issuecomment-1672228305
@hiepxanhhttps://github.com/hiepxanh
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 10, 2023https://github.com/angular/angular/issues/51157#issuecomment-1672738134
https://codesandbox.io/p/sandbox/relaxed-feather-27fv8yhttps://codesandbox.io/p/sandbox/relaxed-feather-27fv8y
@AndrewKushnirhttps://github.com/AndrewKushnir
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 10, 2023https://github.com/angular/angular/issues/51157#issuecomment-1672946930
@AndrewKushnirhttps://github.com/AndrewKushnir
#51318https://github.com/angular/angular/issues/51318
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2023https://github.com/angular/angular/issues/51157#issuecomment-1740144013
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 Sep 29, 2023https://github.com/angular/angular/issues/51157#event-10505398196
ChellappanRajanhttps://github.com/ChellappanRajan
on Jan 23, 2024https://github.com/angular/angular/issues/51157#event-11564095359
fix(core): handle hydration of view containers for root components (a…https://github.com/ChellappanRajan/angular/commit/95ee07ea804ad5cb7b7b478a77b005abf3b84403
a…https://github.com/angular/angular/pull/51247
https://docs.github.com/articles/closing-issues-via-commit-messages
95ee07ehttps://github.com/ChellappanRajan/angular/commit/95ee07ea804ad5cb7b7b478a77b005abf3b84403
ptu14https://github.com/ptu14
on Jan 31, 2024https://github.com/angular/angular/issues/51157#event-11661238859
fix(core): handle hydration of view containers for root components (a…https://github.com/ptu14/angular/commit/55965cbf8c1caa78aad767bb291b5c603c6e3dc9
a…https://github.com/angular/angular/pull/51247
https://docs.github.com/articles/closing-issues-via-commit-messages
55965cbhttps://github.com/ptu14/angular/commit/55965cbf8c1caa78aad767bb291b5c603c6e3dc9
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/51157
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/51157
AndrewKushnirhttps://github.com/AndrewKushnir
jessicajaniukhttps://github.com/jessicajaniuk
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: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
core: hydrationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20hydration%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%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.