Skip to content

Commit d7a8714

Browse files
committed
feedback
1 parent 46d521b commit d7a8714

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.changeset/slimy-islands-cry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'svelte': patch
33
---
44

5-
fix: ensure is_pure takes into account runes
5+
fix: ensure is_pure takes into account $effect.tracking()

packages/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export function is_pure(node, context) {
203203
return false;
204204
}
205205

206-
if (get_rune(b.call(node), context.state.scope) !== null) {
206+
if (get_rune(b.call(node), context.state.scope) === '$effect.tracking') {
207207
return false;
208208
}
209209

0 commit comments

Comments
 (0)