Title: Hydration cleanup mutates arrays stored in @let when the @let is read from a nested view · Issue #71138 · angular/angular · GitHub
Open Graph Title: Hydration cleanup mutates arrays stored in @let when the @let is read from a nested view · Issue #71138 · angular/angular
X Title: Hydration cleanup mutates arrays stored in @let when the @let is read from a nested view · Issue #71138 · angular/angular
Description: I have no idea what is going on here, but here a reproduction. I only noticed because i used an array in a @let that was frozen, and hence the browser threw an exception when angular tried to mutate my frozen array during hydration. I sp...
Open Graph Description: I have no idea what is going on here, but here a reproduction. I only noticed because i used an array in a @let that was frozen, and hence the browser threw an exception when angular tried to mutat...
X Description: I have no idea what is going on here, but here a reproduction. I only noticed because i used an array in a @let that was frozen, and hence the browser threw an exception when angular tried to mutat...
Opengraph URL: https://github.com/angular/angular/issues/71138
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hydration cleanup mutates arrays stored in @let when the @let is read from a nested view","articleBody":"I have no idea what is going on here, but here a reproduction.\n\nI only noticed because i used an array in a `@let` that was frozen, and hence the browser threw an exception when angular tried to mutate my frozen array during hydration.\n\nI spare you all the investigation wall of text by claude. I figured all you need is the reproduction.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/sod/issue-hydration-side-effect\n\n### Please provide the exception or error you saw\n\n\u003cimg width=\"1566\" height=\"670\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/cb23fd9d-7e70-448d-a503-e01c81e89193\" />\n\n\u003cimg width=\"748\" height=\"544\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0d642989-0b54-4f75-be67-958024a72cf8\" />\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI : 22.2.1\nAngular : 22.2.1\nNode.js : 26.8.1\nPackage Manager : yarn 4.18.0\nOperating System : darwin arm64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build │ 22.2.1 │ ^22.2.0 │\n│ @angular/cli │ 22.2.1 │ ^22.2.0 │\n│ @angular/common │ 22.2.1 │ ^22.2.0 │\n│ @angular/compiler │ 22.2.1 │ ^22.2.0 │\n│ @angular/compiler-cli │ 22.2.1 │ ^22.2.0 │\n│ @angular/core │ 22.2.1 │ ^22.2.0 │\n│ @angular/forms │ 22.2.1 │ ^22.2.0 │\n│ @angular/platform-browser │ 22.2.1 │ ^22.2.0 │\n│ @angular/platform-server │ 22.2.1 │ ^22.2.0 │\n│ @angular/router │ 22.2.1 │ ^22.2.0 │\n│ @angular/ssr │ 22.2.1 │ ^22.2.0 │\n│ rxjs │ 7.8.2 │ ~7.8.0 │\n│ typescript │ 6.0.3 │ ~6.0.2 │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/sod","@type":"Person","name":"sod"},"datePublished":"2026-10-02T15:10:50Z","url":"https://github.com/angular/angular/issues/71138"}
| 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:81e5143f-a834-4404-ada2-648d7ef7a4cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA9A:A70A9:F562D2:144E2A4:6B01D903 |
| html-safe-nonce | 9f7d47ce568dbb05bc69d58344eeccbb97e10809307d078a4462ea51cc6edaf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTlBOkE3MEE5OkY1NjJEMjoxNDRFMkE0OjZCMDFEOTAzIiwidmlzaXRvcl9pZCI6IjEyMDI1MjIxNzY3MzgxNTQ3NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b6b760e1e2a8bef3e54c9ccfa3b6de7936ea7631a16915174d83245824e06c62 |
| hovercard-subject-tag | issue:5679374346 |
| 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/71138/issue_layout |
| twitter:image | https://opengraph.githubassets.com/412c41228a97731a9f80ae566ac410453fb031bdc3ee38ac3921364d0792ec5f/angular/angular/issues/71138 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/412c41228a97731a9f80ae566ac410453fb031bdc3ee38ac3921364d0792ec5f/angular/angular/issues/71138 |
| og:image:alt | I have no idea what is going on here, but here a reproduction. I only noticed because i used an array in a @let that was frozen, and hence the browser threw an exception when angular tried to mutat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sod |
| 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