refactor(runtime-core): remove the need for currentSuspense

This commit is contained in:
Evan You
2020-03-30 11:49:51 -04:00
parent 54a11c7bec
commit 573bcb2e11
5 changed files with 10 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
import {
PublicAPIComponent,
Component,
currentSuspense,
currentInstance,
ComponentInternalInstance,
isInSSRComponentSetup
@@ -118,7 +117,7 @@ export function defineAsyncComponent<
// suspense-controlled or SSR.
if (
(__FEATURE_SUSPENSE__ && suspensible && currentSuspense) ||
(__FEATURE_SUSPENSE__ && suspensible && instance.suspense) ||
(__NODE_JS__ && isInSSRComponentSetup)
) {
return load()