diff --git a/packages/runtime-core/src/components/Teleport.ts b/packages/runtime-core/src/components/Teleport.ts index 5d9d4b5b2f9..897225d0f0c 100644 --- a/packages/runtime-core/src/components/Teleport.ts +++ b/packages/runtime-core/src/components/Teleport.ts @@ -160,7 +160,10 @@ export const TeleportImpl = { updateCssVars(n2) } - if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) { + if ( + isTeleportDeferred(n2.props) || + (parentSuspense && parentSuspense.pendingBranch) + ) { queuePostRenderEffect(mountToTarget, parentSuspense) } else { mountToTarget()