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
WHEN using polymorphic components (or even just assigning a tag name to a variable), AND
WHEN this polymorphic Astro component has a slot, AND
WHEN that slot is filled with a framework (Svelte) component which also has a slot, AND
WHEN the framework component has a client hydration directive:
The slot content doesn't appear.
If you refresh the page, you might be able to see the slot appear in prerendering and then disappear upon hydration.
What's the expected result?
Slot content should stay in the DOM after hydration.
Astro info
What browser are you using?
Chrome, Firefox
Describe the Bug
WHEN using polymorphic components (or even just assigning a tag name to a variable), AND
WHEN this polymorphic Astro component has a slot, AND
WHEN that slot is filled with a framework (Svelte) component which also has a slot, AND
WHEN the framework component has a client hydration directive:
The slot content doesn't appear.
If you refresh the page, you might be able to see the slot appear in prerendering and then disappear upon hydration.
What's the expected result?
Slot content should stay in the DOM after hydration.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-stsn4j?file=src%2Fpages%2Findex.astro,src%2Fcomponents%2FStuff.svelte,src%2Fcomponents%2FPoly.astro
Participation
The text was updated successfully, but these errors were encountered: