File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,6 @@ export function updateDirtyFlag(
192192 if ( checkDirty ( sub . deps ! ) ) {
193193 sub . flags = flags | SubscriberFlags . Dirty
194194 return true
195- } else if ( sub . flags & SubscriberFlags . Dirty ) {
196- return true
197195 } else {
198196 sub . flags = flags & ~ SubscriberFlags . PendingComputed
199197 return false
@@ -204,11 +202,7 @@ export function processComputedUpdate(
204202 computed : Computed ,
205203 flags : SubscriberFlags ,
206204) : void {
207- if (
208- flags & SubscriberFlags . Dirty ||
209- checkDirty ( computed . deps ! ) ||
210- computed . flags & SubscriberFlags . Dirty
211- ) {
205+ if ( flags & SubscriberFlags . Dirty || checkDirty ( computed . deps ! ) ) {
212206 if ( computed . update ( ) ) {
213207 const subs = computed . subs
214208 if ( subs !== undefined ) {
@@ -333,10 +327,10 @@ function checkDirty(current: Link): boolean {
333327 current = current . nextDep
334328 continue top
335329 }
336- dirty = false
330+ dirty = ! ! ( sub . flags & SubscriberFlags . Dirty )
337331 }
338332
339- return dirty
333+ return dirty || ! ! ( current . sub . flags & SubscriberFlags . Dirty )
340334 } while ( true )
341335}
342336
You can’t perform that action at this time.
0 commit comments