Skip to content

Commit d7d528c

Browse files
committed
fix $effect.pending()
1 parent 48293d2 commit d7d528c

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ export class Batch {
157157
}
158158
}
159159
}
160-
161-
update_pending();
162160
}
163161

164162
/**
@@ -176,6 +174,8 @@ export class Batch {
176174
}
177175

178176
this.#callbacks.clear();
177+
178+
raf.tick(update_pending);
179179
}
180180

181181
increment() {

0 commit comments

Comments
 (0)