Title: elements: no coalescing of change detection invocations across instances · Issue #33060 · angular/angular · GitHub
Open Graph Title: elements: no coalescing of change detection invocations across instances · Issue #33060 · angular/angular
X Title: elements: no coalescing of change detection invocations across instances · Issue #33060 · angular/angular
Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements. Is this a regression? No. Description While Angular custom elements do coalesce change detection invocations per element instance (see scheduleDetectChanges(...
Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements. Is this a regression? No. Description While Angular custom elements do coalesce change detection invocations per elem...
X Description: 🐞 bug report Affected Package The issue is caused by package @angular/elements. Is this a regression? No. Description While Angular custom elements do coalesce change detection invocations per elem...
Opengraph URL: https://github.com/angular/angular/issues/33060
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"elements: no coalescing of change detection invocations across instances","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package @angular/elements.\r\n\r\n\r\n### Is this a regression?\r\n\r\nNo.\r\n\r\n\r\n### Description\r\n\r\nWhile Angular custom elements do coalesce change detection invocations per element instance (see [scheduleDetectChanges()][1]), there is no coalescing across other instances of the same element or other elements (even for those on the same injector or component tree.\r\n\r\nThis results in too many CDs on pages/routes with many custom elements and can negatively affect performance. (This is the case for example in https://angular.io/guide/router, which has ~200 custom elements.)\r\n\r\n\r\n### Anything else relevant?\r\n\r\nRelated issues: #23813, #33059\r\n\r\n_EDIT:_\r\n_Similar issue with useful context (closed in favor of this one): #23813_\r\n_PR (that would at least cover some usecases): #23885_\r\n\r\n[1]: https://github.com/angular/angular/blob/9f0c549bc/packages/elements/src/component-factory-strategy.ts#L206-L215\r\n","author":{"url":"https://github.com/gkalpak","@type":"Person","name":"gkalpak"},"datePublished":"2019-10-09T15:46:37Z","url":"https://github.com/angular/angular/issues/33060"}
| 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:28324469-24cb-2088-f0d8-7f2fe7f4bf5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED1A:240CD1:157B2FE:1B53301:6B01316D |
| html-safe-nonce | b7c0d3e8d8ecb9f8de268b53856565ce73eb75623e3fbc9e4f0035670fc54bd1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDFBOjI0MENEMToxNTdCMkZFOjFCNTMzMDE6NkIwMTMxNkQiLCJ2aXNpdG9yX2lkIjoiMTI2Mzk3NTA1NDE0MDU4NDMwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e6cf6da3602f7fa016a6f5b36bfb7501e09c908899a02c5166ac890673cf1d9f |
| hovercard-subject-tag | issue:504737652 |
| 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/33060/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72a40537404ce382fbe705d0b85679a909db79791ffede76c24972cb67998142/angular/angular/issues/33060 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72a40537404ce382fbe705d0b85679a909db79791ffede76c24972cb67998142/angular/angular/issues/33060 |
| og:image:alt | 🐞 bug report Affected Package The issue is caused by package @angular/elements. Is this a regression? No. Description While Angular custom elements do coalesce change detection invocations per elem... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gkalpak |
| 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