Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 30, 2023
1 parent ddba601 commit 57af99b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/runtime-core/src/apiWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,18 +378,18 @@ function doWatch(

const effect = new ReactiveEffect(getter, scheduler)

if (__DEV__) {
effect.onTrack = onTrack
effect.onTrigger = onTrigger
}

const unwatch = () => {
effect.stop()
if (instance && instance.scope) {
remove(instance.scope.effects!, effect)
}
}

if (__DEV__) {
effect.onTrack = onTrack
effect.onTrigger = onTrigger
}

// initial run
if (cb) {
if (immediate) {
Expand Down

0 comments on commit 57af99b

Please sign in to comment.