Skip to content

Commit 697445b

Browse files
Update packages/svelte/src/internal/client/reactivity/batch.js
Co-authored-by: Rich Harris <rich.harris@vercel.com>
1 parent 625d8e0 commit 697445b

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,8 +364,7 @@ export class Batch {
364364
continue;
365365
}
366366

367-
// Only reschedule an async effect if it depends on something else than
368-
// the sources that were updated in this batch and that something else changed.
367+
// Re-run async/block effects that depend on distinct values changed in both batches
369368
const others = [...batch.current.keys()].filter((s) => !this.current.has(s));
370369
if (others.length > 0) {
371370
for (const source of sources) {

0 commit comments

Comments
 (0)