Title: Hydration: detect common mismatch patterns and produce a better error message · Issue #56392 · angular/angular · GitHub
Open Graph Title: Hydration: detect common mismatch patterns and produce a better error message · Issue #56392 · angular/angular
X Title: Hydration: detect common mismatch patterns and produce a better error message · Issue #56392 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description During hydration, Angular relies on the application structure to be the same between the server and the client. There are a few cases where if you ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description During hydration, Angular relies on the application structure to be the same between the server and the cli...
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description During hydration, Angular relies on the application structure to be the same between the server and the cli...
Opengraph URL: https://github.com/angular/angular/issues/56392
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hydration: detect common mismatch patterns and produce a better error message","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\r\n\r\ncore\r\n\r\n### Description\r\n\r\nDuring hydration, Angular relies on the application structure to be the same between the server and the client. There are a few cases where if you have a component template that does not have valid HTML structure, this could result in a DOM mismatch error during hydration, see https://angular.dev/guide/hydration#valid-html-structure.\r\n\r\nHere is an example that we've came across on ADEV: https://github.com/angular/angular/pull/56390.\r\n\r\n### Proposed solution\r\n\r\nThe proposal is to auto-detect those situations when hydration mismatch happens and output additional information into the console, to make it easier to find the origin of the problem and resolve it.\r\n","author":{"url":"https://github.com/AndrewKushnir","@type":"Person","name":"AndrewKushnir"},"datePublished":"2024-06-11T23:45:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/56392/angular/issues/56392"}
| 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:c640cea3-e605-b49f-9aa2-bd85969a1c39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB1C:B4049:32C1CF3:41B2573:6974EA72 |
| html-safe-nonce | abdfd47443a32c250cdbb41df55356b3a1c23e05e779ea4fa6e10dc982489856 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjFDOkI0MDQ5OjMyQzFDRjM6NDFCMjU3Mzo2OTc0RUE3MiIsInZpc2l0b3JfaWQiOiIxOTk1ODMzNjk3NDg2ODI2MDk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0018727766977733e235489d180ddb6211eeedcedb311663cf38143315136b0e |
| hovercard-subject-tag | issue:2347482483 |
| 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/56392/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb0f4fe033093d7050c8349ce03a6366f380fcbc2c6a6986f87d14f624d84eb2/angular/angular/issues/56392 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb0f4fe033093d7050c8349ce03a6366f380fcbc2c6a6986f87d14f624d84eb2/angular/angular/issues/56392 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description During hydration, Angular relies on the application structure to be the same between the server and the cli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AndrewKushnir |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width