wip: fix compat utils usage
This commit is contained in:
@@ -226,7 +226,7 @@ function doWatch(
|
||||
const val = baseGetter()
|
||||
if (
|
||||
isArray(val) &&
|
||||
softAssertCompatEnabled(DeprecationTypes.WATCH_ARRAY)
|
||||
softAssertCompatEnabled(DeprecationTypes.WATCH_ARRAY, instance)
|
||||
) {
|
||||
traverse(val)
|
||||
}
|
||||
@@ -277,7 +277,7 @@ function doWatch(
|
||||
hasChanged(newValue, oldValue) ||
|
||||
(__COMPAT__ &&
|
||||
isArray(newValue) &&
|
||||
isCompatEnabled(DeprecationTypes.WATCH_ARRAY))
|
||||
isCompatEnabled(DeprecationTypes.WATCH_ARRAY, instance))
|
||||
) {
|
||||
// cleanup before running cb again
|
||||
if (cleanup) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { hasOwn, isArray } from '@vue/shared/src'
|
||||
import { hasOwn, isArray } from '@vue/shared'
|
||||
import {
|
||||
ComponentInternalInstance,
|
||||
ComponentOptions,
|
||||
|
||||
@@ -443,7 +443,7 @@ function baseCreateRenderer(
|
||||
createHydrationFns?: typeof createHydrationFunctions
|
||||
): any {
|
||||
const isHookEventCompatEnabled =
|
||||
__COMPAT__ && isCompatEnabled(DeprecationTypes.INSTANCE_EVENT_HOOKS)
|
||||
__COMPAT__ && isCompatEnabled(DeprecationTypes.INSTANCE_EVENT_HOOKS, null)
|
||||
|
||||
// compile-time feature flags check
|
||||
if (__ESM_BUNDLER__ && !__TEST__) {
|
||||
|
||||
Reference in New Issue
Block a user