-
-
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
🐛 BUG: Bugs with Svelte - Loses reactivity inside a component affected by JavaScript, slots not behaving correctly. #2456
Comments
Yes, I can confirm this issue. It is an issue with nesting components within an Astro file. The current workaround is to put all of the Svelte nesting within a |
Here's an updated example of this issue: https://stackblitz.com/edit/github-utalnd-erlrmt?file=astro.config.mjs,package.json,src%2Fpages%2Findex.astro Donut islands like this are supported within Solid, but not within other frameworks. This issue seems to be mostly a thing that islands need to enable to support. Marking this issue as needing discussion as we need to decide who's responsibility it is for supporting nested islands, is it Astro's or the frameworks (as is the case with Solid at this time). |
Core team sync:
|
Closed by #3455 |
What version of
astro
are you using?0.22.18
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
Firstly, Reactivity isn't working inside the
CounterWrapper
becauseCounterWrapper
is using JavaScript. For my project I have a few Svelte components that are used for animation such as aFadeUp.svelte
in the example providedCounterWrapper.svelte
is just that.Secondly, there seems to be an issue around slots. I'm trying to create an accordion but if the accordion is closed the slot remains empty.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-utalnd?file=src/pages/index.astro
The text was updated successfully, but these errors were encountered: