Skip to content

Commit

Permalink
refactor: update flags check in setupFlagsHandler for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jan 30, 2025
1 parent c7fbe81 commit 17b2012
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/reactivity/src/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ function setupFlagsHandler(target: Subscriber): void {
},
set(value) {
if (
!(
(target as any)._flags &
(SubscriberFlags.PendingComputed | SubscriberFlags.Dirty)
) &&
!!(value & (SubscriberFlags.PendingComputed | SubscriberFlags.Dirty))
!((target as any)._flags & SubscriberFlags.Propagated) &&
!!(value & SubscriberFlags.Propagated)
) {
onTrigger(this)
}
Expand Down

0 comments on commit 17b2012

Please sign in to comment.