fix(reactivity): use resetTracking instead of enableTracking (#2174)
This commit is contained in:
parent
2e226cb465
commit
7cc09ca8a5
@ -13,7 +13,7 @@ import {
|
||||
trigger,
|
||||
ITERATE_KEY,
|
||||
pauseTracking,
|
||||
enableTracking
|
||||
resetTracking
|
||||
} from './effect'
|
||||
import {
|
||||
isObject,
|
||||
@ -64,7 +64,7 @@ const arrayInstrumentations: Record<string, Function> = {}
|
||||
arrayInstrumentations[key] = function(this: unknown[], ...args: unknown[]) {
|
||||
pauseTracking()
|
||||
const res = method.apply(this, args)
|
||||
enableTracking()
|
||||
resetTracking()
|
||||
return res
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user