From 10a2570cb6e18dd2c9fa83ad05ef327d62a6cd04 Mon Sep 17 00:00:00 2001 From: daiwei Date: Tue, 10 Jun 2025 11:30:58 +0800 Subject: [PATCH] chore: remove redundant code --- packages/runtime-vapor/src/vdomInterop.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/packages/runtime-vapor/src/vdomInterop.ts b/packages/runtime-vapor/src/vdomInterop.ts index b93eb903f6..36a4baa09c 100644 --- a/packages/runtime-vapor/src/vdomInterop.ts +++ b/packages/runtime-vapor/src/vdomInterop.ts @@ -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) } -- 2.47.2