From bb44d9e4b92b852db7dc588c0d663f33739d41de Mon Sep 17 00:00:00 2001 From: Illya Klymov Date: Mon, 22 Nov 2021 06:28:04 +0200 Subject: [PATCH] chore(compat): Always treat legacy functional components as func * we might have COMPONENT_FUNCTIONAL disabled globally but enabled locally in { compatConfig } elsewhere --- src/utils/vueCompatSupport.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/utils/vueCompatSupport.ts b/src/utils/vueCompatSupport.ts index ea17229f6..21d8b26ad 100644 --- a/src/utils/vueCompatSupport.ts +++ b/src/utils/vueCompatSupport.ts @@ -28,10 +28,6 @@ export function unwrapLegacyVueExtendComponent( } export function isLegacyFunctionalComponent(component: unknown) { - if (!isCompatEnabled('COMPONENT_FUNCTIONAL')) { - return false - } - return Boolean( component && typeof component === 'object' &&