Skip to content

Commit ae52e43

Browse files
trueadmdummdidumm
andauthored
Update packages/svelte/src/internal/client/reactivity/sources.js
Co-authored-by: Simon H <[email protected]>
1 parent ba1cc3b commit ae52e43

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ export function set(source, value) {
172172
if (current_effect === null) {
173173
// Triggering an effect sync can tear the signal graph, so to avoid this we need
174174
// to ensure the graph has been flushed before triggering any inspect effects.
175+
// Only needed when there's currently no effect, and flushing with one present
176+
// could have other unintended consequences, like effects running out of order.
175177
// This is expensive, but given this is a DEV mode only feature, it should be fine
176178
flush_sync();
177179
}

0 commit comments

Comments
 (0)