Open ido-pluto opened 2 months ago
Astro v4.11.3 Node v20.9.0 System macOS (arm64) Package Manager npm Output static Adapter none Integrations @astrojs/react
Chrome
If I render a child twice that contains a client framework (react), and does not use all the renders, it will output nothing.
--- await Astro.slots.render('default'); const content2 = await Astro.slots.render('default'); --- <Fragment set:html={content2} />
For this component
--- import { ReactComponent } from './ReactComponent.jsx'; --- <li class='link-card'> <ReactComponent client:only="react"/> </li>
The result is: (The client framework does not render at all)
Client framework render
https://github.com/ido-pluto/astro-render-bug/tree/main
Somewhat related https://github.com/withastro/astro/issues/11079, calling Astro.slots.render() multiple times has been problematic.
Astro.slots.render()
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
If I render a child twice that contains a client framework (react), and does not use all the renders, it will output nothing.
For this component
The result is:
(The client framework does not render at all)
What's the expected result?
Link to Minimal Reproducible Example
https://github.com/ido-pluto/astro-render-bug/tree/main
Participation