René's URL Explorer Experiment


Title: Object set as readonly when passed as a route data · Issue #53632 · angular/angular · GitHub

Open Graph Title: Object set as readonly when passed as a route data · Issue #53632 · angular/angular

X Title: Object set as readonly when passed as a route data · Issue #53632 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description I have a use case where I pass an environment const as a data for a specific route. And I just remark that after the migration to angular ...

Open Graph Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description I have a use case where I pass an environment const as a data for a specific route. And I just rem...

X Description: Which @angular/* package(s) are the source of the bug? router Is this a regression? No Description I have a use case where I pass an environment const as a data for a specific route. And I just rem...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Object set as readonly when passed as a route data","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nrouter\n\n### Is this a regression?\n\nNo\n\n### Description\n\nI have a use case where I pass an environment const as a data for a specific route. And I just remark that after the migration to angular 17, this const is set to readonly when the user go to this route. But not when he go to the page with the url.\r\n\r\nAfter some investigations this issue appear with the change of default value for `paramsInheritanceStrategy` (now set as `emptyOnly` by default). For me it's a bug since the behavior is not the same when `paramsInheritanceStrategy: 'always'`. \r\n\r\nTo do my test I just create 2 components with 2 different routes. One of this route use an environment const as data and the other route is here just to mock a navigation.\r\n\r\nFor the minimal reproduction : \r\n  Click on comp1\r\n  Click on test, an error should be throw in the console\r\n\r\n  Refresh the page when on the comp1\r\n  Click on test, nothing append\r\n  Click on comp2\r\n  Click on test, nothing append\r\n  Click on comp1\r\n  Click on test, an error should be throw in the console\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/stackblitz-starters-jwxjng?file=src%2Fmain.ts\n\n### Please provide the exception or error you saw\n\n```true\nTypeError: Cannot assign to read only property 'dumbValue' of object '[object Object]'\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.0.7\r\nNode: 21.4.0 (Unsupported)\r\nPackage Manager: npm 10.2.5\r\nOS: win32 x64\r\n\r\nAngular: 17.0.7\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, router\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/leonSouffes","@type":"Person","name":"leonSouffes"},"datePublished":"2023-12-19T13:12:00Z","url":"https://github.com/angular/angular/issues/53632"}

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:9f5d8907-f13b-5d45-ab34-213fffd03a40
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD29C:24ACB9:13381E3:1951829:6B01177B
html-safe-nonce2d736258334fb09baff0369719ac65ee8b0ff2619883bc3e733fbe5534b7b1f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjlDOjI0QUNCOToxMzM4MUUzOjE5NTE4Mjk6NkIwMTE3N0IiLCJ2aXNpdG9yX2lkIjoiODUyMDE3MDM1MzM3OTU3OTc3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb40274b68e3329173cc55cb016252f971d93fa676d8b7ffd064ad67d4cdcaff0
hovercard-subject-tagissue:2048633490
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/53632/issue_layout
twitter:imagehttps://opengraph.githubassets.com/06813f22327eba1ff73a8cefdba921a772909caaedfa3f0a9abb7bb59b926838/angular/angular/issues/53632
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/06813f22327eba1ff73a8cefdba921a772909caaedfa3f0a9abb7bb59b926838/angular/angular/issues/53632
og:image:altWhich @angular/* package(s) are the source of the bug? router Is this a regression? No Description I have a use case where I pass an environment const as a data for a specific route. And I just rem...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameleonSouffes
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/53632#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F53632
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%2F53632
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/53632
Reloadhttps://github.com/angular/angular/issues/53632
Reloadhttps://github.com/angular/angular/issues/53632
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/53632
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/53632
Object set as readonly when passed as a route datahttps://github.com/angular/angular/issues/53632#top
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/leonSouffes
leonSouffeshttps://github.com/leonSouffes
on Dec 19, 2023https://github.com/angular/angular/issues/53632#issue-2048633490
https://stackblitz.com/edit/stackblitz-starters-jwxjng?file=src%2Fmain.tshttps://stackblitz.com/edit/stackblitz-starters-jwxjng?file=src%2Fmain.ts
atscotthttps://github.com/atscott
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
on Dec 19, 2023https://github.com/angular/angular/issues/53632#event-11292134390
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Dec 19, 2023https://github.com/angular/angular/issues/53632#event-11292134808
atscotthttps://github.com/atscott
on Dec 19, 2023https://github.com/angular/angular/issues/53632#event-11292136600
fix(router): Should not freeze original object used for route datahttps://github.com/atscott/angular/commit/ab92fa1a9c2d98c0ba84015e922d83b6d8d258ec
https://docs.github.com/articles/closing-issues-via-commit-messages
ab92fa1https://github.com/atscott/angular/commit/ab92fa1a9c2d98c0ba84015e922d83b6d8d258ec
atscotthttps://github.com/atscott
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
502f300https://github.com/angular/angular/commit/502f3007575a5445c2876c92548415cb003582b1
on Dec 19, 2023https://github.com/angular/angular/issues/53632#event-11292668365
atscotthttps://github.com/atscott
on Dec 19, 2023https://github.com/angular/angular/issues/53632#event-11292668456
fix(router): Should not freeze original object used for route data (#…https://github.com/angular/angular/commit/0696ab6a5bea8acd6dafde488151150bf3332b79
#…https://github.com/angular/angular/pull/53635
https://docs.github.com/articles/closing-issues-via-commit-messages
0696ab6https://github.com/angular/angular/commit/0696ab6a5bea8acd6dafde488151150bf3332b79
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Jan 19, 2024https://github.com/angular/angular/issues/53632#issuecomment-1899416045
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 Jan 19, 2024https://github.com/angular/angular/issues/53632#event-11531329018
ChellappanRajanhttps://github.com/ChellappanRajan
on Jan 23, 2024https://github.com/angular/angular/issues/53632#event-11564112245
fix(router): Should not freeze original object used for route data (a…https://github.com/ChellappanRajan/angular/commit/25e96ab3e2f7743281dea2133ab942a18b7108ac
a…https://github.com/angular/angular/pull/53635
https://docs.github.com/articles/closing-issues-via-commit-messages
25e96abhttps://github.com/ChellappanRajan/angular/commit/25e96ab3e2f7743281dea2133ab942a18b7108ac
rlmestrehttps://github.com/rlmestre
on Jan 26, 2024https://github.com/angular/angular/issues/53632#event-11603944197
fix(router): Should not freeze original object used for route data (a…https://github.com/rlmestre/angular/commit/ff029a8d809c7811f6d0fc5a903976efffa7b13c
a…https://github.com/angular/angular/pull/53635
https://docs.github.com/articles/closing-issues-via-commit-messages
ff029a8https://github.com/rlmestre/angular/commit/ff029a8d809c7811f6d0fc5a903976efffa7b13c
amilamenhttps://github.com/amilamen
on Jan 26, 2024https://github.com/angular/angular/issues/53632#event-11608197934
fix(router): Should not freeze original object used for route data (a…https://github.com/amilamen/angular/commit/99f6c9f937a0bf9de03187395929c13c4b5292e7
a…https://github.com/angular/angular/pull/53635
https://docs.github.com/articles/closing-issues-via-commit-messages
99f6c9fhttps://github.com/amilamen/angular/commit/99f6c9f937a0bf9de03187395929c13c4b5292e7
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/53632
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/53632
area: routerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20router%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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.