-
Notifications
You must be signed in to change notification settings - Fork 172
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
Hydration mismatch in Nuxt app after updating Oruga from 0.7 to 0.8.x #860
Comments
I'm not sure if this will be helpful, but I came across this information: https://www.radix-vue.com/utilities/config-provider.html#hydration-issue-vue-3-5 |
Ok, so I have just learnt a bit. With nuxt the script is executed twice, once on the server and once on the client. However, in our case the But we have to wait some more time. A vue native |
The reason the radix-vue authors referred to their solution as a temporary workaround is now clear. Thanks a bunch! |
Hi again, @mlmoravek! Unfortunately, this issue persists and appears to have more significant implications than I initially thought. Although I’m unsure whether this is relevant (I had the very same error with
As a workaround, I had to opt-out of SSR and render the Autocomplete component only on the client side, which is quite unfortunate. Would it be possible to find a similar solution to what the authors of the Radix Vue have proposed? It's just a temporary measure. When I have more time, I’ll try to create a reproducible example if necessary. I’m also open to a debug session or something similar 👍🏻 Edit |
Hey @andrzejkupczyk, for sure we can implement a workaround until vue 3.5. An reproducible example would be nice to make the issue clearer. |
@andrzejkupczyk Vue 3.5 is out now! I will try to add the new |
That’s great, thank you! Unfortunately, I couldn’t find the time to create a reproduction or draft a solution 😿 I apologize for that. |
Overview of the problem
Oruga version: 0.8.6
Vuejs version: 3.4.21
OS/Browser: macOS/Chrome
Description
I'm encountering a hydration mismatch issue with the Autocomplete component while upgrading my Nuxt 3.11.1 app from Oruga version 0.7 to 0.8.6.
I have noticed similar problem reports in vue and nuxt before, but afaik, those problems have been fixed. This issue does not impact other components in Oruga, and it functions properly in Oruga 0.7 version. Hence, I wanted to report the issue here.
Expected behavior
The autocomplete component has the same id on both the server and client side.
Actual behavior
The Autocomplete component on the client side receives a different ID, causing a mismatch in the hydration attribute.
The text was updated successfully, but these errors were encountered: