Closed
Description
Vue version
3.2.39
Link to minimal reproduction
Steps to reproduce
No steps necessary, check the rendered output and the warning
What is expected?
The children inside <TransitionGroup>
are rendered just once and the hydration succeeds
What is actually happening?
The child in <TransitionGroup>
is rendered twice and a hydration warning appears
System Info
No response
Any additional comments?
I suppose that happens because <TransitionGroup>
skips comment nodes (they can't be transitioned and have no boundingClientRect), so it expects the actual child but finds a comment node, "fixes" that by adding the expected child node even though it's already there, just one position behind