Skip to content

Commit 588de48

Browse files
committed
fix(Suspense): reset vnode.placeholder to null when removing placeholder
1 parent 5a8aa0b commit 588de48

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/runtime-core/src/components/Suspense.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,8 @@ function createSuspenseBoundary(
728728
optimized,
729729
)
730730
if (placeholder) {
731+
// clean up placeholder reference
732+
vnode.placeholder = null
731733
remove(placeholder)
732734
}
733735
updateHOCHostEl(instance, vnode.el)

0 commit comments

Comments
 (0)