From 18c7051141d58a2f93bee45bcf4083764bf2c399 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Mon, 23 Dec 2024 13:27:09 +0800 Subject: [PATCH] refactor: enhance condition check in shallowPropagate for SubscriberFlags --- src/system.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system.ts b/src/system.ts index 3413d82..cb4fdc0 100644 --- a/src/system.ts +++ b/src/system.ts @@ -228,7 +228,7 @@ export function shallowPropagate(link: Link): void { do { const updateSub = link.sub; const updateSubFlags = updateSub.flags; - if (updateSubFlags & SubscriberFlags.ToCheckDirty) { + if ((updateSubFlags & (SubscriberFlags.ToCheckDirty | SubscriberFlags.Dirty)) === SubscriberFlags.ToCheckDirty) { updateSub.flags = updateSubFlags | SubscriberFlags.Dirty; } link = link.nextSub!;