Title: Hydration & zoneless: elements got rerendered after Angular initializes · Issue #62672 · angular/angular · GitHub
Open Graph Title: Hydration & zoneless: elements got rerendered after Angular initializes · Issue #62672 · angular/angular
X Title: Hydration & zoneless: elements got rerendered after Angular initializes · Issue #62672 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hey, I've noticed that on each page load, after Angular initializes, all element attributes get re-rendered. This is easy to see with the "R...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hey, I've noticed that on each page load, after Angular initializes, all element attributes get re-r...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hey, I've noticed that on each page load, after Angular initializes, all element attributes get ...
Opengraph URL: https://github.com/angular/angular/issues/62672
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hydration & zoneless: elements got rerendered after Angular initializes","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\nHey,\nI've noticed that on each page load, after Angular initializes, all element attributes get re-rendered. This is easy to see with the \"Rendering -> Paint flashing\" option enabled in dev tools & console.logs from mutation observer.\n\nI've added an app initializer that blocks rendering for 1 second and registers a mutation observer to track all attribute changes:\n\n```ts\nprovideAppInitializer(() => {\n return new Promise((resolve) => {\n if (typeof window !== 'undefined') {\n // mutation observer for console.logs\n }\n\n setTimeout(() => {\n resolve(true);\n }, 1000);\n });\n })\n```\n\nhttps://github.com/user-attachments/assets/58a10310-7c39-479c-ab16-143b7255656b\n\nAccording to the [docs](https://angular.dev/guide/hydration):\n\n> Hydration is the process that restores the server-side rendered application on the client. This includes things like reusing the server rendered DOM structures, persisting the application state, transferring application data that was retrieved already by the server, and other processes.\n\nDo I understand correctly that in this case, hydration simply doesn't work?\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/zip-fa/ng20-hydration-issue\n\n### Please provide the exception or error you saw\n\n```true\n\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular: 20.1.1\n... common, compiler, compiler-cli, core, forms, localize\n... platform-browser, platform-server, router\n\nPackage Version\n------------------------------------------------------\n@angular-devkit/architect 0.2001.0\n@angular-devkit/core 20.1.1\n@angular-devkit/schematics 20.1.1\n@angular/build 20.1.1\n@angular/cli 20.1.1\n@angular/ssr 20.1.1\n@schematics/angular 20.1.1\nrxjs 7.8.2\ntypescript 5.8.3\n```\n\n### Anything else?\n\n`ng build && node dist/ng20-hydration-issue/server/server.mjs`","author":{"url":"https://github.com/zip-fa","@type":"Person","name":"zip-fa"},"datePublished":"2025-07-16T20:00:15Z","url":"https://github.com/angular/angular/issues/62672"}
| 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:2b0ecc1c-00fc-13c1-8a35-f41c95900273 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D30:2C69FC:EF4266:13EF6B1:6B01D8E8 |
| html-safe-nonce | bcc6d08aa45210b6cb58a648208cae2427d7082439ca63a33952d1f719f93a15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDMwOjJDNjlGQzpFRjQyNjY6MTNFRjZCMTo2QjAxRDhFOCIsInZpc2l0b3JfaWQiOiIxMzc2OTEwODE5NzU2OTg4NjQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d975c2767c68c4264a6f818a97e4f3a0ca17236ffd542839ff43c5a2ca99d5b8 |
| hovercard-subject-tag | issue:3237189786 |
| 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/62672/issue_layout |
| twitter:image | https://opengraph.githubassets.com/db0c5a2f6a6c2df5efa39ecd7ff06c2e535f5556a0ba98f3d80703bc796e10f3/angular/angular/issues/62672 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/db0c5a2f6a6c2df5efa39ecd7ff06c2e535f5556a0ba98f3d80703bc796e10f3/angular/angular/issues/62672 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? No Description Hey, I've noticed that on each page load, after Angular initializes, all element attributes get re-r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zip-fa |
| 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