Skip to content

Commit

Permalink
fix(hmr): vuejs#6978 render wrong list
Browse files Browse the repository at this point in the history
  • Loading branch information
hoi-lau committed Oct 29, 2022
1 parent 3bed82b commit 7e5f595
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,10 @@ function baseCreateRenderer(
patchFlag = 0
optimized = false
dynamicChildren = null
if (n1?.dynamicChildren?.length === 0 && n2.dynamicChildren?.length && n2.dynamicChildren?.length > 0) {
unmount(n1, parentComponent, parentSuspense, true, false)
n1 = null
}
}

// check if this is a slot fragment with :slotted scope ids
Expand Down

0 comments on commit 7e5f595

Please sign in to comment.