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.
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
refactor: fix forwarded light DOM slots mapping #3883
refactor: fix forwarded light DOM slots mapping #3883
Changes from 16 commits
9ced343
7d5e9e2
e2985f4
45c0856
d49d919
dc49d3f
364e821
9ce9de6
5ee4651
09abbb6
dce30db
2296e1a
22e5bfd
0389de7
036cdb7
5723bad
404eaaa
b68b82e
e7f9d80
cfdcf8f
6896343
90016b7
4f00ceb
ca69cc2
6849290
7ed00f9
576e04d
e641944
98eacd2
ffc696b
bacd4b0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to move slot assignment outside the
props
inElementData
because static vnodes can also be reassigned during light DOM slot forwarding.For example:
In the above example, the div, which is a static element needs to be forwarded to the
foo
slot. This can't happen through theprops
because static vnodes don't update attributes from props.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to add an ACT compiler change for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be an issue if we decide to use API versioning because of the mechanics of how ACT compiler + API versioning works.
Try publishing an alpha version of LWC with these and run the jest tests on core with this change.