From 72a9b6f4a9d37800232b6fd4e3922b5c0388bc6d Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Thu, 28 Nov 2024 18:45:38 +0800 Subject: [PATCH] Fix build --- packages/reactivity/src/system.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/reactivity/src/system.ts b/packages/reactivity/src/system.ts index 7fed1602264..f34562b4f96 100644 --- a/packages/reactivity/src/system.ts +++ b/packages/reactivity/src/system.ts @@ -43,9 +43,6 @@ export enum SubscriberFlags { ToCheckDirty = 1 << 6, Dirty = 1 << 7, Dirtys = SubscriberFlags.ToCheckDirty | SubscriberFlags.Dirty, - All = SubscriberFlags.Tracking | - SubscriberFlags.CanPropagate | - SubscriberFlags.Dirtys, DirtyFlagsIndex = 6, } @@ -299,7 +296,9 @@ export function checkDirty(deps: Link): boolean { export function startTrack(sub: Subscriber): void { sub.depsTail = undefined - sub.flags = (sub.flags & ~SubscriberFlags.All) | SubscriberFlags.Tracking + sub.flags = + (sub.flags & ~(SubscriberFlags.CanPropagate | SubscriberFlags.Dirtys)) | + SubscriberFlags.Tracking } export function endTrack(sub: Subscriber): void {