extract batch changes to separate PR

object-blockers
Rich Harris 2 weeks ago
parent a9cdef6705
commit 99f623bea0

@ -140,8 +140,6 @@ export class Batch {
is_fork = false;
#decrement_queued = false;
is_deferred() {
return this.is_fork || this.#blocking_pending > 0;
}
@ -440,17 +438,7 @@ export class Batch {
this.#pending -= 1;
if (blocking) this.#blocking_pending -= 1;
if (!this.#decrement_queued) {
this.#decrement_queued = true;
Batch.enqueue(() => {
this.#decrement_queued = false;
if (!this.is_deferred()) {
this.revive();
} else if (!is_flushing && queued_root_effects.length > 0) {
this.flush();
}
});
}
this.revive();
}
revive() {

Loading…
Cancel
Save