-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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: client:load causes hydration sync errors for vue component when using a store #2658
Comments
Hello ! Just for reporting: I have the same error/behavior using the v0.23.1 and with |
FYI: Same issue with svelte component that uses a svelte store. |
Also having this issue:
Edit: I can confirm though that in my project, both the version using Svelte stores and the version rewritten to use Nanostores will fail with the same component error listed above. |
Astro 0.26 update: For the same project of mine previously mentioned, upgrading to Astro 0.26 has not fixed the issue. I'm still seeing |
Astro 0.26.1 fixes this for me both in the Svelte store and nanostores version. Based on the changelog (https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md), I'm guessing it was #2978 that fixed this. To anyone affected by this, I'd encourage you to try 0.26.1 / 1.0 beta.0 to see if it fixes it for you. |
I can confirm that Astro 0.26.1 fixes my issues with svelte |
Sounds like this was fixed in Astro v0.26.1, thanks everyone! |
What version of
astro
are you using?0.23.0
What package manager are you using?
yarn
What operating system are you using?
Mac
Describe the Bug
I have a
vue
component which works as expected when used without aclient:
directive, e.g.But when adding the directive, i.e.
Then it will load OK on the first load, but afterwards starts returning one of the following two types of errors:
or
Uncaught (in promise) Error: Unable to find the root for the component TestC
The issue seems to arise because I'm using a nanostore to share information about my blog posts between different components, which means that the server-side state and client-side state can diverge.
Please see the reproducible repo link.
Thanks!
Link to Minimal Reproducible Example
https://github.com/songololo/astro-debug
The text was updated successfully, but these errors were encountered: