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 using reusable TransitionGroup #6922

Closed
jarkt opened this issue Oct 21, 2022 · 1 comment
Closed

Hydration mismatch when using reusable TransitionGroup #6922

jarkt opened this issue Oct 21, 2022 · 1 comment

Comments

@jarkt
Copy link

jarkt commented Oct 21, 2022

Vue version

3.2.41

Link to minimal reproduction

https://stackblitz.com/edit/github-96ft3e-hemmf1?file=src%2FCustomTransition.vue

Steps to reproduce

  1. Create a reusable transition-group with a default slot
<template>
  <transition-group name="custom-transition">
    <slot />
  </transition-group>
</template>
  1. Use this transition with v-if inside the slot
<template>
  <div>
    <button @click="showData = !showData">Toggle</button>
    <CustomTransition>
      <div v-if="showData">test</div>
    </CustomTransition>
  </div>
</template>

What is expected?

No warning

What is actually happening?

[Vue warn]: Hydration children mismatch in <div>: server rendered element contains more child nodes than client vdom.

System Info

No response

Any additional comments?

Excactly the same issue with "Transition" instead of "TransitionGroup" was already fixed: #5991
The example is also nearly the same.

@posva
Copy link
Member

posva commented Oct 21, 2022

Duplicate of #6715

@posva posva marked this as a duplicate of #6715 Oct 21, 2022
@posva posva closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants