Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Sep 13, 2024
1 parent 1497edb commit da6847a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from './component'
import {
Comment,
Fragment,
type VNode,
type VNodeArrayChildren,
blockStack,
Expand Down Expand Up @@ -235,7 +236,7 @@ export function renderComponentRoot(
}

// #5407
if (!__DEV__ && root.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT) {
if (!__DEV__ && root.type === Fragment) {
const singleRoot = filterSingleRoot(root.children as VNodeArrayChildren)
if (singleRoot) root = singleRoot
}
Expand Down

0 comments on commit da6847a

Please sign in to comment.