From e255c31c881559963287bbb61468e7a3bcb0dbbc Mon Sep 17 00:00:00 2001 From: Evan You Date: Wed, 24 Jul 2024 21:58:04 +0800 Subject: [PATCH] refactor: remove unnecessary else --- packages/runtime-core/src/apiAsyncComponent.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/apiAsyncComponent.ts b/packages/runtime-core/src/apiAsyncComponent.ts index 256673ff7d..579bdd3468 100644 --- a/packages/runtime-core/src/apiAsyncComponent.ts +++ b/packages/runtime-core/src/apiAsyncComponent.ts @@ -158,10 +158,10 @@ export function defineAsyncComponent< }) : null }) - } else { - markAsyncBoundary(instance) } + markAsyncBoundary(instance) + const loaded = ref(false) const error = ref() const delayed = ref(!!delay) -- 2.47.3