-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
needs triageIssue needs to be triagedIssue needs to be triaged
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 when using multiple frameworks.
What's the expected result?
Both should be able to hydrate without any problems.
Link to Minimal Reproducible Example
https://stackblitz.com/~/github.com/Hugos68/astro-inconsistent-hydration-behaviour
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
FrameworkComponent
component (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
false
totrue
, which is expected, except that on/bar/mdx
it stays onfalse
. - Be confused 😁
Participation
- I am willing to submit a pull request for this issue.
Metadata
Metadata
Assignees
Labels
needs triageIssue needs to be triagedIssue needs to be triaged