-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Open
Labels
Description
Version
2.6.10
Reproduction link
mkdir vue-bug-repo
yarn init -y
yarn add vue vue-server-renderer// Step 1: Create a Vue instance
const Vue = require('vue')
const app = new Vue({
data: () => ({ show: true }),
template: `<div>
<transition appear name="fade">
<p v-if="show">
Hello World
</p>
</transition>
</div>`
})
// Step 2: Create a renderer
const renderer = require('vue-server-renderer').createRenderer()
renderer.renderToString(app).then(html => {
console.log(html)
}).catch(err => {
console.error(err)
})Steps to reproduce
node index.js
What is expected?
The server response should contain the *enter classes applied to the transitioning element. The *active classes should then be applied during the hydration so that the transition can appear smoothly.
What is actually happening?
The element is first displayed, as if there were no transitions. Then then entire animation starts, causing wired animations.