File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export function propagate(current: Link): void {
151
151
const sub = current . sub
152
152
const subFlags = sub . flags
153
153
154
- let shouldNotify = 0
154
+ let shouldNotify = false
155
155
156
156
if (
157
157
! (
@@ -163,23 +163,23 @@ export function propagate(current: Link): void {
163
163
)
164
164
) {
165
165
sub . flags = subFlags | targetFlag
166
- shouldNotify = 1
166
+ shouldNotify = true
167
167
} else if (
168
168
subFlags & SubscriberFlags . Recursed &&
169
169
! ( subFlags & SubscriberFlags . Tracking )
170
170
) {
171
171
sub . flags = ( subFlags & ~ SubscriberFlags . Recursed ) | targetFlag
172
- shouldNotify = 1
172
+ shouldNotify = true
173
173
} else if (
174
174
! ( subFlags & ( SubscriberFlags . Dirty | SubscriberFlags . Pending ) ) &&
175
175
isValidLink ( current , sub )
176
176
) {
177
177
sub . flags = subFlags | SubscriberFlags . Recursed | targetFlag
178
- shouldNotify = 2
178
+ shouldNotify = ! ( 'notify' in sub )
179
179
}
180
180
181
181
if ( shouldNotify ) {
182
- if ( shouldNotify === 1 && 'notify' in sub ) {
182
+ if ( 'notify' in sub ) {
183
183
notifyBuffer [ notifyBufferLength ++ ] = sub
184
184
} else {
185
185
const subSubs = ( sub as Dependency ) . subs
You can’t perform that action at this time.
0 commit comments