Skip to content

Commit 6ae85ac

Browse files
authored
Update packages/svelte/tests/runtime-runes/samples/effect-tracking-unowned/main.svelte
1 parent 95b76c7 commit 6ae85ac

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/tests/runtime-runes/samples/effect-tracking-unowned

1 file changed

+1
-1
lines changed

packages/svelte/tests/runtime-runes/samples/effect-tracking-unowned/main.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
const store = writable("previous");
55
let text = $derived(fromStore(store).current + " message");
66
7-
const textStore = toStore(() => text);
7+
text; // read derived in a non-tracking context
88
</script>
99

1010
<o>Store: {$store}</o>

0 commit comments

Comments
 (0)