make is_deferred private

pull/17731/head
Rich Harris 6 months ago
parent 04c0368aa8
commit 61466bffe3

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

Loading…
Cancel
Save