8000 fix(runtime-core): filter single root for nested DEV_ROOT_FRAGMENT by edison1105 · Pull Request #8593 · vuejs/core · GitHub
[go: up one dir, main page]

Skip to content

fix(runtime-core): filter single root for nested DEV_ROOT_FRAGMENT #8593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 12, 2024
Prev Previous commit
Next Next commit
chore: improve code
  • Loading branch information
edison1105 committed Sep 13, 2023
commit c5ce3d02d9982ed46c26ef7b5a649bf3ba07e9a7
14 changes: 6 additions & 8 deletions packages/runtime-core/src/componentRenderUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,21 +284,19 @@ export function filterSingleRoot(
return
} else {
singleRoot = child
if (
singleRoot.patchFlag > 0 &&
singleRoot.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT
) {
return filterSingleRoot(singleRoot.children as VNodeArrayChildren)
}
}
}
} else {
return
}
}

if (
singleRoot &&
singleRoot.patchFlag > 0 &&
singleRoot.patchFlag & PatchFlags.DEV_ROOT_FRAGMENT
) {
return filterSingleRoot(singleRoot.children as VNodeArrayChildren)
}

return singleRoot
}

Expand Down
0