question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report][3.0.0-beta.4] VOverlay SSR hydration errors

See original GitHub issue

Environment

Vuetify Version: 3.0.0-beta.4 Vue Version: 3.2.37 Browsers: Chrome 102.0.0.0 OS: Windows 10

Steps to reproduce

  1. Make a component from “https://next.vuetifyjs.com/en/components/overlays/#advanced
  2. Make v-for for cards
  3. Hover on card
  4. Profit!

Expected Behavior

Hover and overlays work’s fine inside v-for

Actual Behavior

Hover didn’t work, you get errors in console, also overlay didn’t display.

Reproduction

<template>
    <v-row>
        <v-col cols="12" sm="6" md="4" lg="3" v-for="i in 10" :key="i">
            <v-hover v-slot="{ isHovering, props }">
                <v-card class="mx-auto" max-width="344" v-bind="props">
                    <v-img src="https://cdn.vuetifyjs.com/images/cards/forest-art.jpg"></v-img>

                    <v-card-text>
                        <h2 class="text-h6 primary--text">
                            Magento Forests
                        </h2>
                        Travel to the best outdoor experience on planet Earth. A vacation you will never forget!
                    </v-card-text>

                    <v-card-title>
                        <v-rating :value="4" dense color="orange" background-color="orange" hover class="mr-2">
                        </v-rating>
                        <span class="primary--text text-subtitle-2">64 Reviews</span>
                    </v-card-title>

                    <v-overlay :model-value="isHovering" contained scrim="#036358" class="align-center justify-center">
                        <v-btn flat>See more info</v-btn>
                    </v-overlay>
                </v-card>
            </v-hover>
        </v-col>
    </v-row>
</template>

Screenshots

This work’s for one element / card. image

This breaks for a few elements in v-for image

image image

PS: I a bit sleepy, I make a reproduce link a bit later.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
KaelWDcommented, Jun 21, 2022

The actual bug is this, it has nothing to do with keep-alive or v-for Screenshot_20220621_193106

1reaction
magyarbcommented, Nov 18, 2022

Thanks for the fix! In the demo, it looks like it is solved. But if you use layouts and pages in nuxt3, the same problem appears again (and duplicates the buttons next to the v-menu in the toolbar - but also appears when using v-dialog).

@KaelWD could you please reopen this issue until it is fully fixed?

Here is the reproduction link: https://stackblitz.com/edit/node-htkewu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understand and solve hydration errors in Vue.js - sum.cumo
Hydration refers to the client-side process during which Vue takes ... The error can also only occur when using SSR and only if...
Read more >
react-hydration-error - Next.js
When css-in-js libraries are not set up for pre-rendering (SSR/SSG) it will often lead to a hydration mismatch. In general this means the...
Read more >
react hydration error | The AI Search Engine You Control
When the storage is empty, the error isn't thrown. The page doesn't use SSR or SSG, i.e., the page file only exports the...
Read more >
How to catch React Hydration errors on production
We always ensure that the server-side and client-side HTML matches but still, hydration error occurs due to a small bug getting merged even ......
Read more >
Next.js SSR hydration error? : r/reactjs - Reddit
I have Next.js server side rendered app and I struggle with hydration and unmatched client-server state. Here are screenshots of errors…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found