fix(teleport): teleport should always be tracked as dynamic child for unmount

fix #1088
This commit is contained in:
Evan You 2020-05-01 15:12:07 -04:00
parent 08bf7e3607
commit 7f23555356

View File

@ -381,6 +381,7 @@ function _createVNode(
patchFlag !== PatchFlags.HYDRATE_EVENTS && patchFlag !== PatchFlags.HYDRATE_EVENTS &&
(patchFlag > 0 || (patchFlag > 0 ||
shapeFlag & ShapeFlags.SUSPENSE || shapeFlag & ShapeFlags.SUSPENSE ||
shapeFlag & ShapeFlags.TELEPORT ||
shapeFlag & ShapeFlags.STATEFUL_COMPONENT || shapeFlag & ShapeFlags.STATEFUL_COMPONENT ||
shapeFlag & ShapeFlags.FUNCTIONAL_COMPONENT) shapeFlag & ShapeFlags.FUNCTIONAL_COMPONENT)
) { ) {