@@ -66,11 +66,7 @@ function endBatch() {
66
66
effect . _nextBatchedEffect = undefined ;
67
67
effect . _flags &= ~ NOTIFIED ;
68
68
69
- if (
70
- ! ( effect . _flags & DISPOSED ) &&
71
- effect . _flags & OUTDATED &&
72
- needsToRecompute ( effect )
73
- ) {
69
+ if ( ! ( effect . _flags & DISPOSED ) && needsToRecompute ( effect ) ) {
74
70
try {
75
71
effect . _callback ( ) ;
76
72
} catch ( err ) {
@@ -619,7 +615,7 @@ function Effect(this: Effect, compute: () => void) {
619
615
this . _cleanup = undefined ;
620
616
this . _sources = undefined ;
621
617
this . _nextBatchedEffect = undefined ;
622
- this . _flags = OUTDATED | TRACKING ;
618
+ this . _flags = TRACKING ;
623
619
}
624
620
625
621
Effect . prototype . _callback = function ( ) {
@@ -643,15 +639,14 @@ Effect.prototype._start = function () {
643
639
prepareSources ( this ) ;
644
640
645
641
/*@__INLINE__ **/ startBatch ( ) ;
646
- this . _flags &= ~ OUTDATED ;
647
642
const prevContext = evalContext ;
648
643
evalContext = this ;
649
644
return endEffect . bind ( this , prevContext ) ;
650
645
} ;
651
646
652
647
Effect . prototype . _notify = function ( ) {
653
648
if ( ! ( this . _flags & NOTIFIED ) ) {
654
- this . _flags |= NOTIFIED | OUTDATED ;
649
+ this . _flags |= NOTIFIED ;
655
650
this . _nextBatchedEffect = batchedEffect ;
656
651
batchedEffect = this ;
657
652
}
0 commit comments