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
bug: ssr. Incorrect slotted node order with serializeShadowRoot: 'scoped' #6293
I have searched for existing issues that already report this problem, without success.
Stencil Version
latest
Current Behavior
When slotted nodes are nested in 2 (or more) components deep and rendered via serializeShadowRoot: 'scoped' the original node order will be lost; instead taking the order of the <slot /> elements within the component.
Visually, this doesn't impact anything however it can cause hydration errors in meta frameworks (e.g. nuxt / next etc).
Given the following outer markup:
<cmp-parent><cmp-child><pslot="two">Slot 2</p> <!-- should be first in the final dom --!><pslot="one">Slot 1</p> <!-- should be second in final dom --!></cmp-child></cmp-parent>
Activity