File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/svelte/src/legacy Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ class Svelte4Component {
76
76
sources . set ( key , s ) ;
77
77
return s ;
78
78
} ;
79
- // Using proxy state here isn't completely mirroring the Svelte 4 behavior, because mutations to a property
80
- // cause fine-grained updates to only the places where that property is used, and not the entire property.
81
- // Reactive statements and actions (the things where this matters) are handling this properly regardless, so it should be fine in practise .
79
+ // Replicate coarse-grained props through a proxy that has a version source for
80
+ // each property, which is increment on updates to the property itself. Do not
81
+ // use our $state proxy because that one has fine-grained reactivity .
82
82
const props = new Proxy (
83
83
{ ...( options . props || { } ) , $$events : { } } ,
84
84
{
You can’t perform that action at this time.
0 commit comments