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

@@ -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) {