-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
[2.0] Transition fails to show with components using render functions #3474
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
Comments
You should not be mutating the vnode's key in Instead, do that directly in the render function before returning them: https://jsfiddle.net/80nazax6/ |
Btw, there's no need for And there's also no need for registering |
@yyx990803 That does not fix the error described in this issue, unfortunately. If you click the button in your latest fiddle until "Second" appears for the second(!) time, you will see the error in the console, and clicking the button again won't transition to "third" |
Thanks for the advices regarding the unnecessary boilerplate! |
Uh oh!
There was an error while loading. Please reload this page.
Vue.js version
v2.0.0-rc.2
Reproduction Link
https://jsfiddle.net/wy1frr50/3/
Steps to reproduce
Push the button until it cycles back into "First", then push it again
What is Expected?
A fade transition to "Second"
What is actually happening?
Uncaught TypeError: Cannot read property '_pending' of null
After investigation, it sounds like the element being transitioned out is (logically) removed from the dom, but the old reference is still kept. When vue tries to recycle it for rerendering, the reference lacks a
parentNode
property, leading to this error.The text was updated successfully, but these errors were encountered: