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

fix(runtime-core): should update parent host el when component self u… #1360

Merged
merged 5 commits into from
Jun 15, 2020

Conversation

underfin
Copy link
Member

@underfin underfin commented Jun 14, 2020

…pdated

fix #1357

Bug Reason

Incorrect judge conditions with the next === null which mean slef updated, because next is changed before used it.
It caused the el of keepalvie vnode always is comment (the init value of router-view vnode is undefined, it is comment after normalized).Actually it should be div of Home component el.

@@ -1216,6 +1216,7 @@ function baseCreateRenderer(
// no update needed. just copy over properties
n2.component = n1.component
n2.el = n1.el
instance.vnode = n2
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is here caused that the vnode isn't euquals to parent.subTree when parent is first rerender

@yyx990803 yyx990803 merged commit 6c8bfa1 into vuejs:master Jun 15, 2020
@underfin underfin deleted the update-hoc-el branch June 16, 2020 01:00
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

Successfully merging this pull request may close these issues.

[Vue warn]: Unhandled error during execution of scheduler flush.
2 participants