Skip to content

Commit 17b2012

Browse files
committed
refactor: update flags check in setupFlagsHandler for clarity
1 parent c7fbe81 commit 17b2012

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/reactivity/src/debug.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ function setupFlagsHandler(target: Subscriber): void {
6969
},
7070
set(value) {
7171
if (
72-
!(
73-
(target as any)._flags &
74-
(SubscriberFlags.PendingComputed | SubscriberFlags.Dirty)
75-
) &&
76-
!!(value & (SubscriberFlags.PendingComputed | SubscriberFlags.Dirty))
72+
!((target as any)._flags & SubscriberFlags.Propagated) &&
73+
!!(value & SubscriberFlags.Propagated)
7774
) {
7875
onTrigger(this)
7976
}

0 commit comments

Comments
 (0)