Title: Certain `@let` values can mimic internal data structure, breaking basic runtime logic · Issue #59504 · angular/angular · GitHub
Open Graph Title: Certain `@let` values can mimic internal data structure, breaking basic runtime logic · Issue #59504 · angular/angular
X Title: Certain `@let` values can mimic internal data structure, breaking basic runtime logic · Issue #59504 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Before hydration and using signals my code worked. I refactored it to use signals and incremental hydration and it broke. The error message...
Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Before hydration and using signals my code worked. I refactored it to use signals and incremental h...
X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Before hydration and using signals my code worked. I refactored it to use signals and incremental h...
Opengraph URL: https://github.com/angular/angular/issues/59504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Certain `@let` values can mimic internal data structure, breaking basic runtime logic","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore\n\n### Is this a regression?\n\nYes\n\n### Description\n\nBefore hydration and using signals my code worked. I refactored it to use signals and incremental hydration and it broke. The error message was not really meaningful: `Cannot add property i18nNodes, object is not extensible`\n\nI use [apollo-angular](https://www.npmjs.com/package/apollo-angular) which freezes every object in its state and results. The state cannot be modified.\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n```true\nCannot add property i18nNodes, object is not extensible\n\nThe line where the error has happened is https://github.com/angular/angular/blob/4491704fbaec02db8eec5845ffbb200dbf2a0bf6/packages/core/src/hydration/i18n.ts#L660\n```\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nNX 20.3.0\nAngular 19.0.5\nAngular SSR 19.0.6\n```\n\n### Anything else?\n\nWorkaround:\n\nUnfreeze the object using some hacky js code: `const unfrozenObj = JSON.parse(JSON.stringify(obj));`\n\nPossible solutions:\nCheck before trying to set the values if the object is frozen using: `Object.isExtensible(object)`.\n1. Throw an error that the state is not extensible and provide some information on the current component which has the error.\n2. Show a warning during development and provide some information on the current component which has the error. In production mode ignore it.\n3. Ignore setting the values without any warning.\n\nI am very happy to code and make a PR on any of the solutions if the Angular team has decided.","author":{"url":"https://github.com/csutorasr","@type":"Person","name":"csutorasr"},"datePublished":"2025-01-13T16:40:46Z","url":"https://github.com/angular/angular/issues/59504"}
| 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:0b5c2a29-fd9e-985e-f12a-8624b47f1e4b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4F6:1AE20C:352A365:43578C4:6B01D8ED |
| html-safe-nonce | 488dc3a75828939ca3a6d86467607e8997cc2d9eaf84648515f554304977eddf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEY2OjFBRTIwQzozNTJBMzY1OjQzNTc4QzQ6NkIwMUQ4RUQiLCJ2aXNpdG9yX2lkIjoiMTg0MjEzMDY0Njc2MTM3MTk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b94efb495f2d7c6e409a1290d918b2cc42268ceaac5f8a542a8b84862b9f8570 |
| hovercard-subject-tag | issue:2784573825 |
| 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/59504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61fc671aef4ec5b622699888d48ffb793721b052dc5b6d6c8be853a78186878a/angular/angular/issues/59504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61fc671aef4ec5b622699888d48ffb793721b052dc5b6d6c8be853a78186878a/angular/angular/issues/59504 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description Before hydration and using signals my code worked. I refactored it to use signals and incremental h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | csutorasr |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width