We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2587f36 commit 347a879Copy full SHA for 347a879
packages/runtime-core/src/componentRenderUtils.ts
@@ -119,7 +119,11 @@ export function renderComponentRoot(
119
// to have comments along side the root element which makes it a fragment
120
let root = result
121
let setRoot: ((root: VNode) => void) | undefined = undefined
122
- if (__DEV__ && result.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) {
+ if (
123
+ __DEV__ &&
124
+ result.patchFlag > 0 &&
125
+ result.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT
126
+ ) {
127
;[root, setRoot] = getChildRoot(result)
128
}
129
0 commit comments