Skip to content

Commit

Permalink
fix(reactivity): use resetTracking instead of enableTracking (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangmingshan authored Oct 13, 2020
1 parent 2e226cb commit 7cc09ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/reactivity/src/baseHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
trigger,
ITERATE_KEY,
pauseTracking,
enableTracking
resetTracking
} from './effect'
import {
isObject,
Expand Down Expand Up @@ -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
}
})
Expand Down

0 comments on commit 7cc09ca

Please sign in to comment.