fix: `set_untracked_writes` for `BLOCK_EFFECT`'s too

derived-reactions-maybe-dirty-marked
paoloricciuti 3 months ago
parent 02a30b5602
commit 20cc0fe277

@ -190,7 +190,7 @@ export function internal_set(source, value) {
is_runes() && is_runes() &&
active_effect !== null && active_effect !== null &&
(active_effect.f & CLEAN) !== 0 && (active_effect.f & CLEAN) !== 0 &&
(active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT)) === 0 (active_effect.f & (BRANCH_EFFECT | ROOT_EFFECT | BLOCK_EFFECT)) === 0
) { ) {
if (untracked_writes === null) { if (untracked_writes === null) {
set_untracked_writes([source]); set_untracked_writes([source]);

@ -11,7 +11,6 @@
}); });
let Thing = $derived.by(() => { let Thing = $derived.by(() => {
console.log("comp", config);
return config === "any" ? A : B; return config === "any" ? A : B;
}); });
</script> </script>

Loading…
Cancel
Save