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
Nesting client:only directives can cause issues with rendering components on the server. Since the Island component is marked with client:only, any nested components with the same directive will also be skipped during server-side rendering. This can lead to empty content being displayed initially before the browser hydrates the components.
Instead of applying client:only to the Island component, move it to the individual components to render conditionally. This approach ensures that only the Hello and World components are skipped during server-side rendering, while the Island component itself is still rendered on the server.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
below is the "not working" case, which is webpage display nothing.
but, if don't use Fragment, it works
also, below is work if nested components not defined
client:only
What's the expected result?
I expected this should work
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-qczw9r-srdto2?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: