Skip to content

Commit

Permalink
chore(compat): Always treat legacy functional components as func
Browse files Browse the repository at this point in the history
* we might have COMPONENT_FUNCTIONAL disabled globally but enabled
locally in { compatConfig } elsewhere
  • Loading branch information
xanf committed Nov 22, 2021
1 parent 57f7fd7 commit bb44d9e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/utils/vueCompatSupport.ts
Expand Up @@ -28,10 +28,6 @@ export function unwrapLegacyVueExtendComponent<T>(
}

export function isLegacyFunctionalComponent(component: unknown) {
if (!isCompatEnabled('COMPONENT_FUNCTIONAL')) {
return false
}

return Boolean(
component &&
typeof component === 'object' &&
Expand Down

0 comments on commit bb44d9e

Please sign in to comment.