Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchangtao committed Oct 28, 2024
1 parent 4ee92ea commit 328e9db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/reactivity/src/dep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export class Dep {
startBatch()
try {
if (__DEV__) {
pauseTracking()
// subs are notified and batched in reverse-order and then invoked in
// original order at the end of the batch, but onTrigger hooks should
// be invoked in original order here.
Expand All @@ -185,6 +186,7 @@ export class Dep {
)
}
}
resetTracking()
}
for (let link = this.subs; link; link = link.prevSub) {
if (link.sub.notify()) {
Expand Down

0 comments on commit 328e9db

Please sign in to comment.