Skip to content

Commit 10a2570

Browse files
committed
chore: remove redundant code
1 parent 6e7bb79 commit 10a2570

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

packages/runtime-vapor/src/vdomInterop.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,24 +91,6 @@ const vaporInteropImpl: Omit<
9191
if (instance.block) {
9292
unmountComponent(instance, container)
9393
}
94-
// A component with async dep inside a pending suspense is unmounted before
95-
// its async dep resolves. This should remove the dep from the suspense, and
96-
// cause the suspense to resolve immediately if that was the last dep.
97-
const parentSuspense = instance.suspense
98-
if (
99-
__FEATURE_SUSPENSE__ &&
100-
parentSuspense &&
101-
parentSuspense.pendingBranch &&
102-
!parentSuspense.isUnmounted &&
103-
instance.asyncDep &&
104-
!instance.asyncResolved &&
105-
instance.suspenseId === parentSuspense.pendingId
106-
) {
107-
parentSuspense.deps--
108-
if (parentSuspense.deps === 0) {
109-
parentSuspense.resolve()
110-
}
111-
}
11294
} else if (vnode.vb) {
11395
remove(vnode.vb, container)
11496
}

0 commit comments

Comments
 (0)