-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lit-based components show a warning on init [1 day] #7496
Comments
The main reason for this is that we store references to DOM elements in reactive properties to use them in observers.
So, immediately after initial render there is another update caused by setting this reference, which causes the warning. I'd say this case generally falls into the following exception which is stated in the warning itself though:
|
Description
Lit-based components show a warning on init with the latest version of Lit
Element vaadin-side-nav scheduled an update (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. See https://lit.dev/msg/change-in-update for more information.
Expected outcome
There should not be a warning
Minimal reproducible example
Open a page with a Lit-based Vaadin component (side-nav, popover)
Steps to reproduce
See console
Environment
Vaadin version(s): 24
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: