effects,
parentComponent,
container,
+ isInFallback,
} = suspense
// if there's a transition happening we need to wait it to finish.
MoveType.ENTER,
)
queuePostFlushCb(effects)
+ // clear el reference from fallback vnode to allow GC after transition
+ if (isInFallback && vnode.ssFallback) {
+ vnode.ssFallback.el = null
+ }
}
}
}
anchor = next(activeBranch)
}
unmount(activeBranch, parentComponent, suspense, true)
+ // clear el reference from fallback vnode to allow GC
+ // only clear immediately if there's no delayed transition
+ if (!delayEnter && isInFallback && vnode.ssFallback) {
+ vnode.ssFallback.el = null
+ }
}
if (!delayEnter) {
// move content from off-dom container to actual container