-
-
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
onMount not called in nested hydrated Solid.js components #4343
Comments
I can reproduce this, though it can be workaround by wrapping the |
@bluwy such workaround doesn't work for us. Also onMount doesn't work for us at all. |
client:visible
Hey @DevHusariaSolutions! The easiest workaround here is to switch from https://stackblitz.com/edit/github-sdeict-8xbpkg?file=src%2Fpages%2Findex.astro Why is this happening? Another workaround would be to wrap you child content in any element so the - <Show when={show()} fallback="Not working">
+ <Show when={show()} fallback={<p>Not working</p>}> |
client:visible
client:visible
and fallback content is only a Text Node
Removed the I think we could inject an empty |
@natemoo-re thanks for Your response. In sandbox it works. I found out what's the issue. Check my edited StackBlitz https://stackblitz.com/edit/github-sdeict?file=src%2Fpages%2Findex.astro |
@natemoo-re please restore framework-solid flag, because I guess it's too early to decide it's not related to framework |
@bluwy pls remove flag p2-has-workaround, because it hasn't |
client:visible
and fallback content is only a Text Node
Thanks for the updated Stackblitz! I can reproduce in your stackblitz. If you have any interest in jumping in to help with a fix, let us know! Otherwise we'll get to this as soon as we can. |
We are full of work now. Just because of this bug we are stuck with some app refactor, and we need to use another package. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Ignore my comment above again 😺 Looks like the issue is that the astro island script is added in the slot rather than the first wrapping New repro: https://stackblitz.com/edit/github-r17dcx?file=src%2Fpages%2Findex.astro&on=stackblitz |
What version of
astro
are you using?1.0.5
Are you using an SSR adapter? If so, which one?
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
I have code, which should update signal state and render app using component.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-sdeict?file=src/components/Counter.tsx
Participation
The text was updated successfully, but these errors were encountered: