Skip to content

Commit 9e1cc4f

Browse files
committed
fix(suspense): handle suspense patching fast path edge case with container determination
1 parent 3cb4db2 commit 9e1cc4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/runtime-core/src/renderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,8 @@ function baseCreateRenderer(
961961
// which also requires the correct parent container
962962
!isSameVNodeType(oldVNode, newVNode) ||
963963
// - In the case of a component, it could contain anything.
964-
oldVNode.shapeFlag & (ShapeFlags.COMPONENT | ShapeFlags.TELEPORT))
964+
oldVNode.shapeFlag &
965+
(ShapeFlags.COMPONENT | ShapeFlags.TELEPORT | ShapeFlags.SUSPENSE))
965966
? hostParentNode(oldVNode.el)!
966967
: // In other cases, the parent container is not actually used so we
967968
// just pass the block element here to avoid a DOM parentNode call.

0 commit comments

Comments
 (0)