Skip to content

Commit eda2c02

Browse files
committed
fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated
1 parent 2f90dd8 commit eda2c02

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/orange-tips-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export function prop(props, key, flags, fallback) {
335335
}
336336

337337
// easy mode — prop is never written to
338-
if ((flags & PROPS_IS_UPDATED) === 0) {
338+
if ((flags & PROPS_IS_UPDATED) === 0 && runes) {
339339
return getter;
340340
}
341341

0 commit comments

Comments
 (0)