fix(runtime-core): should call Suspense fallback unmount hook (#1061)

fix #1059
This commit is contained in:
underfin
2020-05-02 04:20:16 +08:00
committed by GitHub
parent b40fcbc4c6
commit 8b85aaeea9
2 changed files with 54 additions and 3 deletions

View File

@@ -1856,9 +1856,9 @@ function baseCreateRenderer(
) {
queuePostRenderEffect(da, parentSuspense)
}
queuePostFlushCb(() => {
queuePostRenderEffect(() => {
instance.isUnmounted = true
})
}, parentSuspense)
// A component with async dep inside a pending suspense is unmounted before
// its async dep resolves. This should remove the dep from the suspense, and