Skip to content

Commit bd4ba56

Browse files
authored
chore: make batch.is_deferred a private method (#17729)
small tweak
1 parent 04c0368 commit bd4ba56

File tree

1 file changed

+3
-3
lines changed
  • packages/svelte/src/internal/client/reactivity

1 file changed

+3
-3
lines changed

packages/svelte/src/internal/client/reactivity/batch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class Batch {
142142

143143
#decrement_queued = false;
144144

145-
is_deferred() {
145+
#is_deferred() {
146146
return this.is_fork || this.#blocking_pending > 0;
147147
}
148148

@@ -202,7 +202,7 @@ export class Batch {
202202
// log_inconsistent_branches(root);
203203
}
204204

205-
if (this.is_deferred()) {
205+
if (this.#is_deferred()) {
206206
this.#defer_effects(render_effects);
207207
this.#defer_effects(effects);
208208

@@ -475,7 +475,7 @@ export class Batch {
475475
queue_micro_task(() => {
476476
this.#decrement_queued = false;
477477

478-
if (!this.is_deferred()) {
478+
if (!this.#is_deferred()) {
479479
// we only reschedule previously-deferred effects if we expect
480480
// to be able to run them after processing the batch
481481
this.revive();

0 commit comments

Comments
 (0)