|
|
@@ -848,7 +848,11 @@ function baseCreateRenderer(
|
|
|
}
|
|
|
if (parentComponent) {
|
|
|
let subTree = parentComponent.subTree
|
|
|
- if (__DEV__ && subTree.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) {
|
|
|
+ if (
|
|
|
+ __DEV__ &&
|
|
|
+ subTree.patchFlag > 0 &&
|
|
|
+ subTree.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT
|
|
|
+ ) {
|
|
|
subTree =
|
|
|
filterSingleRoot(subTree.children as VNodeArrayChildren) || subTree
|
|
|
}
|