wip: fix compat utils usage

This commit is contained in:
Evan You
2021-04-09 23:21:13 -04:00
parent 183f9b0013
commit 7a25cbb7a7
8 changed files with 32 additions and 13 deletions

View File

@@ -103,7 +103,7 @@ export function resolveTransitionProps(
// legacy transition class compat
const legacyClassEnabled =
__COMPAT__ &&
compatUtils.isCompatEnabled(DeprecationTypes.TRANSITION_CLASSES)
compatUtils.isCompatEnabled(DeprecationTypes.TRANSITION_CLASSES, null)
let legacyEnterFromClass: string
let legacyAppearFromClass: string
let legacyLeaveFromClass: string

View File

@@ -107,7 +107,8 @@ const TransitionGroupImpl = {
__COMPAT__ &&
!rawProps.tag &&
compatUtils.softAssertCompatEnabled(
DeprecationTypes.TRANSITION_GROUP_ROOT
DeprecationTypes.TRANSITION_GROUP_ROOT,
instance.parent
)
) {
tag = 'span'