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 9, 2024
1 parent c93166c commit 18e4cea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/runtime-core/src/components/Suspense.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ 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
3 changes: 2 additions & 1 deletion packages/runtime-core/src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2523,7 +2523,8 @@ function getSequence(arr: number[]): number[] {
function locateNonHydratedAsyncRoot(
instance: ComponentInternalInstance,
): ComponentInternalInstance | undefined {
const subComponent = instance.subTree.component
const subComponent =
instance.subTree.component || instance.subTree.ssContent?.component
if (subComponent) {
if (subComponent.asyncDep && !subComponent.asyncResolved) {
return subComponent
Expand Down

0 comments on commit 18e4cea

Please sign in to comment.