Skip to content

Commit f41ac33

Browse files
committed
wip
1 parent 0441a11 commit f41ac33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: packages/reactivity/src/system.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function propagate(current: Link): void {
151151
const sub = current.sub
152152
const subFlags = sub.flags
153153

154-
let shouldNotify = 0
154+
let shouldNotify = false
155155

156156
if (
157157
!(
@@ -163,23 +163,23 @@ export function propagate(current: Link): void {
163163
)
164164
) {
165165
sub.flags = subFlags | targetFlag
166-
shouldNotify = 1
166+
shouldNotify = true
167167
} else if (
168168
subFlags & SubscriberFlags.Recursed &&
169169
!(subFlags & SubscriberFlags.Tracking)
170170
) {
171171
sub.flags = (subFlags & ~SubscriberFlags.Recursed) | targetFlag
172-
shouldNotify = 1
172+
shouldNotify = true
173173
} else if (
174174
!(subFlags & (SubscriberFlags.Dirty | SubscriberFlags.Pending)) &&
175175
isValidLink(current, sub)
176176
) {
177177
sub.flags = subFlags | SubscriberFlags.Recursed | targetFlag
178-
shouldNotify = 2
178+
shouldNotify = !('notify' in sub)
179179
}
180180

181181
if (shouldNotify) {
182-
if (shouldNotify === 1 && 'notify' in sub) {
182+
if ('notify' in sub) {
183183
notifyBuffer[notifyBufferLength++] = sub
184184
} else {
185185
const subSubs = (sub as Dependency).subs

0 commit comments

Comments
 (0)