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): correctly resolve slots during hydration #6131

Merged

Conversation

johnjenkins
Copy link
Contributor

What is the current behavior?

GitHub Issue Number: #6130

Slots can get incorrectly rendered / resolved during client-side hydration from SSR content

What is the new behavior?

Slot elements are given their respective $name$ when the SSR > VDOM is created.
This means old to updated VDOM (then DOM) is correctly correctly resolved - slots are no longer overwritten.

Fixes #6130

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

  • New wdio test

Other information

@johnjenkins johnjenkins requested a review from a team as a code owner January 29, 2025 12:07
Copy link
Member

@christian-bromann christian-bromann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@christian-bromann christian-bromann merged commit 8853790 into ionic-team:main Jan 30, 2025
70 of 71 checks passed
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.

bug: ssr <slot />s can be incorrectly resolved during client-side hydration
2 participants