Skip to content

Commit

Permalink
refactor: enhance condition check in shallowPropagate for SubscriberF…
Browse files Browse the repository at this point in the history
…lags
  • Loading branch information
johnsoncodehk committed Dec 23, 2024
1 parent 6a61b86 commit 18c7051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down

0 comments on commit 18c7051

Please sign in to comment.