107
108
if (this._hasValue) {
110
>
subtransaction(
111
>
this._getTransaction(),
112
>
(tx) => {
113
>
getLogger()?.handleObservableUpdated(this, { oldValue, newValue, change: undefined, didChange, hadValue: this._hasValue });
114
>
115
>
for (const o of this._observers) {
116
>
tx.updateObserver(o, this);
117
>
o.handleChange(this, undefined);
118
>
}
119
>
},
120
>
() => {
121
const name = this.getDebugName();
122
return 'Event fired' + (name ? `: ${name}` : '');
123
}
125
>
}
126
this._hasValue = true;
127
}