Skip to content
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

fix(ssr): fix adjacent text node concatenation #5079

Merged
merged 8 commits into from
Jan 7, 2025

Conversation

nolanlawson
Copy link
Collaborator

Details

Fixes #5078

This does two things:

  • Moves text concatenation from the runtime to the compiler, which makes the generated code more efficient
  • Fixes text concatenation in light DOM slots.

This ended up being a bit tricky due to needing to set the cxt.nextSibling properly during light DOM slotted content generation, but I think it's still pretty clean. Light DOM slots in general may need a cleanup in the future.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

Co-Authored-By: jhefferman-sfdc <[email protected]>
Co-Authored-By: Will Harney <[email protected]>
@nolanlawson nolanlawson merged commit 8274541 into master Jan 7, 2025
11 checks passed
@nolanlawson nolanlawson deleted the nolan/adjacent-text-light-dom-slotted branch January 7, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants