From 328e9dbcde5c5f8cee17e72f7134e4ee001e76d9 Mon Sep 17 00:00:00 2001 From: yangchangtao Date: Mon, 28 Oct 2024 15:58:17 +0800 Subject: [PATCH] chore: update --- packages/reactivity/src/dep.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/reactivity/src/dep.ts b/packages/reactivity/src/dep.ts index c33df700a31..004150c6668 100644 --- a/packages/reactivity/src/dep.ts +++ b/packages/reactivity/src/dep.ts @@ -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. @@ -185,6 +186,7 @@ export class Dep { ) } } + resetTracking() } for (let link = this.subs; link; link = link.prevSub) { if (link.sub.notify()) {