test: more comprehesive combined suspense test

This commit is contained in:
Evan You
2019-09-12 10:31:56 -04:00
parent 575c957c69
commit dfcf494483
2 changed files with 105 additions and 47 deletions

View File

@@ -846,11 +846,16 @@ export function createRenderer<
effects,
vnode,
parentComponent,
container,
anchor
container
} = suspense
// this is initial anchor on mount
let { anchor } = suspense
// unmount fallback tree
if (fallbackTree.el) {
// if the fallback tree was mounted, it may have been moved
// as part of a parent suspense. get the latest anchor for insertion
anchor = getNextHostNode(fallbackTree)
unmount(fallbackTree as HostVNode, parentComponent, suspense, true)
}
// move content from off-dom container to actual container