Skip to content

Commit

Permalink
refactor: update condition in shallowPropagate to use ToCheckDirty flag
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Dec 22, 2024
1 parent eb81439 commit 3132378
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.Dirty | SubscriberFlags.Tracking))) {
if (updateSubFlags & SubscriberFlags.ToCheckDirty) {
updateSub.flags = updateSubFlags | SubscriberFlags.Dirty;
}
link = link.nextSub!;
Expand Down

0 comments on commit 3132378

Please sign in to comment.