Commit 8ed88e4
authored
fix(svelte-table): Don't directly reference local state (#5943)
In svelte 5, $state referenced locally is not reactive, because of how evaluation occurs.
Svelte will warn about this at runtime (and does so here)
To make it reactive locally, we use property getters, to ensure we always return the latest state.1 parent 2f985da commit 8ed88e4
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments