notifyComputed<T> function
Force update a computed without changing its value
Implementation
@pragma('vm:prefer-inline')
@pragma('wasm:prefer-inline')
@pragma('dart2js:prefer-inline')
void notifyComputed<T>(Computed<T> computed) {
updateComputed(computed);
Link? subs = computed.subs;
while (subs != null) {
subs.sub.flags |= (ReactiveFlags.pending);
shallowPropagate(subs);
subs = subs.nextSub;
}
if (computed.subs != null && batchDepth == 0) {
flushEffects();
}
JoltDebug.notify(computed);
}