Skip to content

Commit 7cc09ca

Browse files
authored
fix(reactivity): use resetTracking instead of enableTracking (#2174)
1 parent 2e226cb commit 7cc09ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/reactivity/src/baseHandlers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
trigger,
1414
ITERATE_KEY,
1515
pauseTracking,
16-
enableTracking
16+
resetTracking
1717
} from './effect'
1818
import {
1919
isObject,
@@ -64,7 +64,7 @@ const arrayInstrumentations: Record<string, Function> = {}
6464
arrayInstrumentations[key] = function(this: unknown[], ...args: unknown[]) {
6565
pauseTracking()
6666
const res = method.apply(this, args)
67-
enableTracking()
67+
resetTracking()
6868
return res
6969
}
7070
})

0 commit comments

Comments
 (0)