Skip to content

Commit 1911b4c

Browse files
committed
refactor: remove unneeded flags check in processComputedUpdate
1 parent 750b476 commit 1911b4c

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

packages/reactivity/src/system.ts

+7-9
Original file line numberDiff line numberDiff line change
@@ -201,17 +201,15 @@ export function processComputedUpdate(
201201
shallowPropagate(subs)
202202
}
203203
}
204-
} else if (flags & SubscriberFlags.PendingComputed) {
205-
if (checkDirty(computed.deps!)) {
206-
if (computed.update()) {
207-
const subs = computed.subs
208-
if (subs !== undefined) {
209-
shallowPropagate(subs)
210-
}
204+
} else if (checkDirty(computed.deps!)) {
205+
if (computed.update()) {
206+
const subs = computed.subs
207+
if (subs !== undefined) {
208+
shallowPropagate(subs)
211209
}
212-
} else {
213-
computed.flags = flags & ~SubscriberFlags.PendingComputed
214210
}
211+
} else {
212+
computed.flags = flags & ~SubscriberFlags.PendingComputed
215213
}
216214
}
217215

0 commit comments

Comments
 (0)