@ -581,8 +581,6 @@ export class Batch {
}
# find _earlier _batch ( ) {
if ( this . is _eager ) return null ;
for ( var batch = this . prev ; batch !== null ; batch = batch . prev ) {
if ( ! batch . is _fork && this . dependent . has ( batch ) ) {
return batch ;
@ -1271,15 +1269,12 @@ export function eager(fn) {
// the first time this runs, we create an eager effect
// that will run eagerly whenever the expression changes
var previous _batch _values = batch _values ;
var previous _stale _sources = stale _sources ;
try {
batch _values = null ;
stale _sources = null ;
value = fn ( ) ;
} finally {
batch _values = previous _batch _values ;
stale _sources = previous _stale _sources ;
}
return ;
@ -1402,7 +1397,7 @@ export function fork(fn) {
// apply changes and update write versions so deriveds see the change
for ( var [ source , content ] of batch . current ) {
source . v = content . v ;
content. wv = source. wv = increment _write _version ( ) ;
source. wv = increment _write _version ( ) ;
}
// trigger any `$state.eager(...)` expressions with the new state.