Skip to content

Commit b6a26ae

Browse files
committed
explanatory comment on both sides
1 parent dcbb740 commit b6a26ae

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ export function internal_set(source, value) {
169169
source.updated = get_stack('UpdatedAt');
170170

171171
if (active_effect !== null) {
172+
// Signal that we should increment the write version
173+
// after the current effect has run, so that it is
174+
// marked dirty if the effect uses `$inspect.trace()`
172175
source.trace_need_increase = true;
173176
}
174177
}

0 commit comments

Comments
 (0)