]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove redundant code
authordaiwei <daiwei521@126.com>
Tue, 10 Jun 2025 03:30:58 +0000 (11:30 +0800)
committerdaiwei <daiwei521@126.com>
Tue, 10 Jun 2025 03:30:58 +0000 (11:30 +0800)
packages/runtime-vapor/src/vdomInterop.ts

index b93eb903f65ebd4605d1eb6ebc97559c1cda5fa2..36a4baa09cd4b4c69161655e6b88b8749a34907e 100644 (file)
@@ -91,24 +91,6 @@ const vaporInteropImpl: Omit<
       if (instance.block) {
         unmountComponent(instance, container)
       }
-      // A component with async dep inside a pending suspense is unmounted before
-      // its async dep resolves. This should remove the dep from the suspense, and
-      // cause the suspense to resolve immediately if that was the last dep.
-      const parentSuspense = instance.suspense
-      if (
-        __FEATURE_SUSPENSE__ &&
-        parentSuspense &&
-        parentSuspense.pendingBranch &&
-        !parentSuspense.isUnmounted &&
-        instance.asyncDep &&
-        !instance.asyncResolved &&
-        instance.suspenseId === parentSuspense.pendingId
-      ) {
-        parentSuspense.deps--
-        if (parentSuspense.deps === 0) {
-          parentSuspense.resolve()
-        }
-      }
     } else if (vnode.vb) {
       remove(vnode.vb, container)
     }