You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[reactive-element] fixes inconsistent initial values in changed properties - #4949
@freshp86 can you help verify that this version would address the issues you're seeing? Thanks.
Will give it a shot and report back, but unfortunately trying non-released versions of Lit within local Chromium builds is not very straight forward.
I have checked out Lit, patched this PR, and successfully ran npm run build locally. Having said that, in order to try this change in the context of Chromium I need to recreate the files that are distributed by npm install lit and I can't find them. If you can help me recreate those files locally, then I can try verifying whether these fixes are sufficient for our case. Thanks!
For quick testing, maybe you can just copy the ReactiveElement and LitElement out and make your base class extend from those?
Thanks! I have partially verified that these would work for us. For the record here is how I went about it.
Checked out Lit locally, patched this PR, and succesfully ran npm run build
Copied the generated packages/reactive-element/reactive-element.js file to Chromium's third_party/node/node_modules/@lit/reactive-element/reactive-element.js.
Copied the generated packages/lit-element/lit-element.js file to Chromium's third_party/node/node_modules/lit-element/lit-element.js .
Note that we still use "lit": "3.0.2" in our package.json, so the files above have been copied on top of that version.
Re-built our tests and ran all CrLitElement tests which passed.
I am not able to actually spawn our trybots with the modified Lit in Chromium's third_party/, to run all of the tests with these changes, so there is still a chance something might have been missed if not covered by the CrLitElement unit tests, but the fact that CrLitElement tests are passing with the workarounds reverted seems very promising.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4916