fix(runtime-core): fix fragment update inside de-opt slots

fix #3881
This commit is contained in:
Evan You
2021-06-04 18:03:40 -04:00
parent 71f7c25fbe
commit 5bce2ae723
2 changed files with 62 additions and 2 deletions

View File

@@ -1170,7 +1170,7 @@ function baseCreateRenderer(
const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''))!
let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2
if (patchFlag > 0) {
if (dynamicChildren) {
optimized = true
}