Replies: 2 comments 2 replies
-
Thank you for the stackblitz example of the issue. I will be taking a look at this and will post back with any updates. |
Beta Was this translation helpful? Give feedback.
-
Looking into this is a warning from our internal web component tooling (Lit) about detecting a potential performance issue. This warning only occurs in dev mode. In the stackblitz demo optimization of external dependencies is disabled ( https://stackblitz.com/edit/clarity-update-issue-tfndv2?devtoolsheight=33&file=angular.json "development": {
"buildOptimizer": false,
"optimization": {
"scripts": true,
"styles": {
"minify": true,
"inlineCritical": false
},
"fonts": true
},
The performance impact of this should be minimal. When angular and lit are running in prod mode the custom element property setters should be called less frequent. In cases of multiple sets the custom elements are small and fairly inexpensive when re-rendering. |
Beta Was this translation helpful? Give feedback.
-
Hi,
after upgrading to Angular 12 there were suddenly a few dozen warnings in my console:
"An update was requested (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update."
At first I thought it was some kind of change-detection issue with my components, but after some digging I found out, that some cds webcomponents seem to trigger the issue.... even without any template variables, just by using them plainly.
I created a stackblitz with the latest cds version (5.4.2) to demonstrate the issue:
https://stackblitz.com/edit/clarity-update-issue?devtoolsheight=33&file=src/app/app.component.html
You can see that three of the four cds-Elements in there trigger this warning (all but cds-input).
There are more, but I wanted to keep the example concise.
I wasn't able to find further information for that warning or a general workaround/fix, so I am unsure if this can be regarded a bug in clarity or maybe just an incompatibility with Angular 12?
Beta Was this translation helpful? Give feedback.
All reactions