chore: make batch.is_deferred a private method (#17729)

small tweak
pull/17732/head
Rich Harris 7 months ago committed by GitHub
parent 04c0368aa8
commit bd4ba56932
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -142,7 +142,7 @@ export class Batch {
#decrement_queued = false; #decrement_queued = false;
is_deferred() { #is_deferred() {
return this.is_fork || this.#blocking_pending > 0; return this.is_fork || this.#blocking_pending > 0;
} }
@ -202,7 +202,7 @@ export class Batch {
// log_inconsistent_branches(root); // log_inconsistent_branches(root);
} }
if (this.is_deferred()) { if (this.#is_deferred()) {
this.#defer_effects(render_effects); this.#defer_effects(render_effects);
this.#defer_effects(effects); this.#defer_effects(effects);
@ -475,7 +475,7 @@ export class Batch {
queue_micro_task(() => { queue_micro_task(() => {
this.#decrement_queued = false; this.#decrement_queued = false;
if (!this.is_deferred()) { if (!this.#is_deferred()) {
// we only reschedule previously-deferred effects if we expect // we only reschedule previously-deferred effects if we expect
// to be able to run them after processing the batch // to be able to run them after processing the batch
this.revive(); this.revive();

Loading…
Cancel
Save