We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba1cc3b commit ae52e43Copy full SHA for ae52e43
packages/svelte/src/internal/client/reactivity/sources.js
@@ -172,6 +172,8 @@ export function set(source, value) {
172
if (current_effect === null) {
173
// Triggering an effect sync can tear the signal graph, so to avoid this we need
174
// 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.
177
// This is expensive, but given this is a DEV mode only feature, it should be fine
178
flush_sync();
179
}
0 commit comments