We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed01d92 commit b4f6786Copy full SHA for b4f6786
packages/runtime-core/src/componentOptions.ts
@@ -860,22 +860,14 @@ export function createWatcher(
860
? currentInstance
861
: null
862
863
- const newValue = getter()
864
- if (
865
- isArray(newValue) &&
866
- isCompatEnabled(DeprecationTypes.WATCH_ARRAY, instance)
867
- ) {
868
- options.deep = true
869
- }
870
-
871
const baseGetter = getter
872
getter = () => {
873
const val = baseGetter()
874
if (
875
isArray(val) &&
876
checkCompatEnabled(DeprecationTypes.WATCH_ARRAY, instance)
877
) {
878
- traverse(val)
+ traverse(val, 1)
879
}
880
return val
881
0 commit comments