-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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 Report][3.4.9] Hydration style mismatch VNavigationDrawer and VAppBar together #19015
Comments
vuejs/core#5300 doesn't actually seem to be fixed |
This might be one of those issues that needs a global search and replace, seeing it in v-img too, v-navigation-drawer, and more components... v-img
v-nav-d
v-toolbar
Not sure if this helps? PS I'm on 3.4.10 vue/vuetify |
On latest of everything and it's just class mismatch on everything. Really impossible to debug and dev because of the log spew on all components. Never saw this problem before until recent updates.
UPDATE: If I start manually assigning The issue above, was due to light theme on the SSR, and a dark theme being set in an onMounted handler in the client, which is reasonable if using localstorage to remember theme state. This used to work. |
I encountered the same problem when using the VItemGroup and VItem component. I change the color of the button depending on the isSelected flag.
|
FYI, vuejs/core#5300 is marked as closed and issue is still present with: Vue 3.4.19 |
#15229 fixed this too |
Sorry to be the bearer of bad news, but could we reopen this issue? It is still reproduceable on the latest version of https://stackblitz.com/edit/nuxt-starter-dsdqtb?file=package.json |
Same over here with [Vue warn]: Hydration style mismatch on
<header id="nav-main" class="v-toolbar v-toolbar--fla… v-app-bar text-primary" style="top:0;z-index:1006;trans…sition:none !important;" app="" data-v-a254f246="">
- rendered on server: style="top:0;z-index:1006;transform:translateY(0%);position:fixed;transition:none !important;"
- expected on client: style="top:0;z-index:1004;transform:translateY(0%);position:fixed;transition:none !important;" |
See nuxt/nuxt#26483 |
Still happening in
|
yeah, all the issues related to this i'm seeing amount to this. the worst offender I think are v-tooltips - in my project, the SSR issue gave them all the same ID, leading to not only loads of warnings but also all of them displaying the same tooltip :D For now, wrapping them in a v-no-ssr is a workaround for that last issue, but obviously still throws a hydration mismatch warning. |
I'm also facing the same. |
me too |
I am seeing this as well. VMain appears to exhibit this behavior. Removing it resolves the warning. |
Only the below steps fixed for me... I updated package.json to use vuetify": "3.6.5" and ran |
I still get the hydration mismatch issues on 3.6.5, so the issue seems to still exist |
Still seeing this in v3.6.6, too. |
If you followed the Nuxt 3 Installation guide, and came here... Don't forget to add |
@tommie In my case, I already had This made me think: Should it really be |
The code already does the in-browser check on top of vuetify/packages/vuetify/src/framework.ts Line 88 in 665c616
Same where it tries to retrieve the display details: vuetify/packages/vuetify/src/composables/display.ts Lines 102 to 121 in 665c616
|
OK, I don't fully grasp what the code in the body of |
This seems to be a bug in vuetify/nuxt, for some reason it has trouble keying the elements See: vuetifyjs/vuetify#19015
I am also seeing this on v-tabs where the selected tab is missing the selected classes on the server side. |
Still present in |
I am also facing on v-tabs sharply now! For example,
|
Nuxt 3.4.12 / Vuetify 3.6.13 / Vue 3.4.34 and my v-navigation-drawer only works without throwing this warning if I wrap it in ClientOnly. |
Environment
Vuetify Version: 3.4.9
Vue Version: 3.4.7
Browsers: Chrome 117.0.0.0
OS: Linux x86_64
Steps to reproduce
1.- Follow instructions exactly from https://vuetifyjs.com/en/getting-started/installation/#using-nuxt-3
2.- Add ssr on plugin
createVuetify({ ssr: true })
3.- Add minimal code on app.vue with VNavigationDrawer and VAppBar together
Expected Behavior
There should be no vue warns
Actual Behavior
There are mismatch vue warns
[Vue warn]: Hydration style mismatch on <header class="v-toolbar v-toolbar--density-default v-theme--light v-locale--is-ltr v-app-bar" style="top: 0px; z-index: 1004; transform: translateY(0%); position: fixed; left: 0px; width: calc((100% - 0px) - 0px);">…flex
rendered on server: style="[object Map]"
expected on client: style="[object Map]"
Reproduction Link
https://stackblitz.com/edit/nuxt-starter-wtdujy
Other comments
Only occur using VNavigationDrawer and VAppBar together
The text was updated successfully, but these errors were encountered: