-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client:only
causes component contents to be deleted in output (v3)
#8337
Comments
This one may have been my fault! I refactored the Vue renderer in #8264 and may have caused a regression for I'm pretty sure you can pin to |
Upon further testing, I was able to get the above reproduction working using |
The `[email protected]` has an active issue with regards to client components. withastro/astro#8337
This seems to have been fixed in one of the latest releases. |
Seems that the latest release have fixed the issue regarding `client:only` components, though I do not know which specific commit/s from `Astro`'s codebase lead to this fix. withastro/astro#8337 (comment)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Building a project with components using the
client:only
directive results in its contents disappearing, e.g., building this:↓↓↓
If I add a
<slot />
to the component, the slotted content is placed, but all other elements are ignored:↓↓↓
Screenshots from my project:
v2.10.14
v3.0.5
Console output
What's the expected result?
The contents are preserved.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-4wkbtj?file=dist%2Findex.html
Participation
The text was updated successfully, but these errors were encountered: