Skip to content

Commit 9cf7525

Browse files
committed
fix(runtime-core): fix dev fragment root flag check
1 parent 66b94dc commit 9cf7525

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/runtime-core/src/renderer.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,11 @@ function baseCreateRenderer(
848848
}
849849
if (parentComponent) {
850850
let subTree = parentComponent.subTree
851-
if (__DEV__ && subTree.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) {
851+
if (
852+
__DEV__ &&
853+
subTree.patchFlag > 0 &&
854+
subTree.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT
855+
) {
852856
subTree =
853857
filterSingleRoot(subTree.children as VNodeArrayChildren) || subTree
854858
}

0 commit comments

Comments
 (0)