fix(runtime-core): cloned vnodes with extra props should de-opt

This commit is contained in:
Evan You
2020-05-01 14:55:27 -04:00
parent ac6a6f11ac
commit 08bf7e3607
4 changed files with 16 additions and 10 deletions

View File

@@ -113,11 +113,6 @@ export function renderComponentRoot(
root.shapeFlag & ShapeFlags.COMPONENT
) {
root = cloneVNode(root, fallthroughAttrs)
// If the child root node is a compiler optimized vnode, make sure it
// force update full props to account for the merged attrs.
if (root.dynamicChildren) {
root.patchFlag |= PatchFlags.FULL_PROPS
}
} else if (__DEV__ && !accessedAttrs && root.type !== Comment) {
const allAttrs = Object.keys(attrs)
const eventAttrs: string[] = []