Skip to content
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 when custom element contains child node #8110

Open
dritter opened this issue Apr 18, 2023 · 1 comment
Open

Hydration mismatch when custom element contains child node #8110

dritter opened this issue Apr 18, 2023 · 1 comment

Comments

@dritter
Copy link

dritter commented Apr 18, 2023

Vue version

3.2.47

Link to minimal reproduction

https://github.com/dritter/vue-ssr-hydration-mismatch-reproducer

Steps to reproduce

  1. git clone https://github.com/dritter/vue-ssr-hydration-mismatch-reproducer
  2. cd vue-ssr-hydration-mismatch-reproducer
  3. npm i
  4. npm run dev
  5. Look in the Browser console for hydration mismatches.

What is expected?

No hydration mismatch should occur. The custom component should be skipped in hydration.

What is actually happening?

grafik

System Info

System:
    OS: Linux 6.2 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
    Memory: 8.89 GB / 15.39 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 19.8.1 - /usr/bin/node
    npm: 8.19.2 - /usr/bin/npm
  Browsers:
    Chromium: 112.0.5615.121
    Firefox: 112.0
  npmPackages:
    vue: ^3.2.25 => 3.2.47

Any additional comments?

This does only happen, if <my-component> contains child nodes.

I discovered this in nuxt/nuxt#20327

@VasiliyRusin
Copy link

Hi! I think this problem needs more concern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants