Skip to content

Commit 0a9d60a

Browse files
committed
chore: tweaks
1 parent f6ec775 commit 0a9d60a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,9 @@ function createSuspenseBoundary(
577577
}
578578
unmount(activeBranch, parentComponent, suspense, true)
579579
// clear el reference from fallback vnode to allow GC
580-
// only clear immediately if there's no delayed transition
581-
queuePostRenderEffect(() => {
582-
if (!delayEnter && isInFallback && vnode.ssFallback) {
583-
vnode.ssFallback.el = null
584-
}
585-
}, suspense)
580+
if (!delayEnter && isInFallback && vnode.ssFallback) {
581+
queuePostRenderEffect(() => (vnode.ssFallback!.el = null), suspense)
582+
}
586583
}
587584
if (!delayEnter) {
588585
// move content from off-dom container to actual container

0 commit comments

Comments
 (0)