fix(runtime-core): fix dev fragment root flag check
This commit is contained in:
parent
66b94dc5e1
commit
9cf75258c8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user