You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like Nuxt doesn't update the attributes when mounted on the client side.
In the repro above you can see that the text node is updated to match the right value on the client side (isClient = true), while the attribute (you can to inspect the div), says false.
Additional context
Using Vue Devtools, I can see that Vue is detecting the right value. But seems like Nuxt is just not updating the DOM for the attribute.
Logs
No response
The text was updated successfully, but these errors were encountered:
You are changing the value before hydration which is technically a hydration mismatch. However, Vue is generous when it comes to attributes and does not throw an error.
You should ensure that your component state matches between client/server, until initial hydration takes place. Example.
Environment
Linux
v16.14.2
3.0.0-rc.3
npm@7.17.0
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-fqaqgt?file=app.vue,package.json
Describe the bug
Seems like Nuxt doesn't update the attributes when mounted on the client side.
In the repro above you can see that the text node is updated to match the right value on the client side (isClient =
true
), while the attribute (you can to inspect the div), saysfalse
.Additional context
Using Vue Devtools, I can see that Vue is detecting the right value. But seems like Nuxt is just not updating the DOM for the attribute.
Logs
No response
The text was updated successfully, but these errors were encountered: