fix(runtime-core): cloned vnodes with extra props should de-opt
This commit is contained in:
@@ -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[] = []
|
||||
|
||||
Reference in New Issue
Block a user