Skip to content

Commit 20cc0fe

Browse files
committed
fix: set_untracked_writes for BLOCK_EFFECT's too
1 parent 02a30b5 commit 20cc0fe

File tree

2 files changed

+1
-2
lines changed
  • packages/svelte

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function internal_set(source, value) {
190190
is_runes() &&
191191
active_effect !== null &&
192192
(active_effect.f & CLEAN) !== 0 &&
193-
(active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0
193+
(active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT | BLOCK_EFFECT)) === 0
194194
) {
195195
if (untracked_writes === null) {
196196
set_untracked_writes([source]);

packages/svelte/tests/runtime-runes/samples/derived-dirty-after-read/main.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
});
1212
1313
let Thing = $derived.by(() => {
14-
console.log("comp", config);
1514
return config === "any" ? A : B;
1615
});
1716
</script>

0 commit comments

Comments
 (0)