Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Sep 5, 2024
1 parent 3297d92 commit dc6c416
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/runtime-core/src/components/Teleport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit dc6c416

Please sign in to comment.