Skip to content

Commit

Permalink
fix: update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchangtao committed Jan 8, 2024
1 parent c81cc14 commit c93166c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/runtime-core/src/components/Suspense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ export function queueEffectWithSuspense(

function setActiveBranch(suspense: SuspenseBoundary, branch: VNode) {
suspense.activeBranch = branch
if (!branch.el) return
const { vnode, parentComponent } = suspense
const el = (vnode.el = branch.el)
// in case suspense is the root node of a component,
Expand Down
1 change: 0 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,6 @@ function baseCreateRenderer(
if (!initialVNode.el) {
const placeholder = (instance.subTree = createVNode(Comment))
processCommentNode(null, placeholder, container!, anchor)
initialVNode.el = placeholder.el
}
} else {
setupRenderEffect(
Expand Down

0 comments on commit c93166c

Please sign in to comment.