fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated

pull/16038/head
Rich Harris 4 months ago
parent 2f90dd8246
commit eda2c029a5

@ -0,0 +1,5 @@
---
'svelte': patch
---
fix: use local mutable sources for props in legacy mode in case they are indirectly invalidated

@ -335,7 +335,7 @@ export function prop(props, key, flags, fallback) {
} }
// easy mode — prop is never written to // easy mode — prop is never written to
if ((flags & PROPS_IS_UPDATED) === 0) { if ((flags & PROPS_IS_UPDATED) === 0 && runes) {
return getter; return getter;
} }

Loading…
Cancel
Save