-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Closed
Copy link
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)
Description
Astro Info
Astro v5.14.4
Node v22.20.0
System Windows (x64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/svelte (v7.2.0)
@astrojs/react (v4.4.0)
@astrojs/mdx (v4.3.7)
If this issue only occurs in one browser, which browser is a problem?
Not relevant
Describe the Bug
Using Astro.slots.render inside a component that is rendered inside MDX results in broken hydration.
What's the expected result?
Both should be able to hydrate without any problems.
Link to Minimal Reproducible Example
Steps:
- Open the root page, will redirect to
/bar/mdx - View the 4 links, each link will bring you to a "environment"
- Each page shows wether the
FrameworkComponentcomponent (in this case Svelte, but the same happens with other frameworks) (with client:load) hydrated correctly by checking forimport.meta.env.SSR. - View that on all pages it goes from
falsetotrue, which is expected, except that on/bar/mdxit stays onfalse. - Be confused 😁
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P3: minor bugAn edge case that only affects very specific usage (priority)An edge case that only affects very specific usage (priority)