how to derive a deeply reactive variable from another? #16187
-
|
let's say I have a list of items and I want a deeply reactive variable that's derived from it. it must:
the only way I currently know is using
https://svelte.dev/playground/5f8a2ab8ce1d4834a5ba16fce64fada6?version=latest |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
As of Svelte 5.25.0, you can update deriveds and it just works: |
Beta Was this translation helpful? Give feedback.
-
|
As has been mentioned in #16189, one can wrap the value in a
|
Beta Was this translation helpful? Give feedback.
As has been mentioned in #16189, one can wrap the value in a
$stateproxy to get deep reactivity in derived values.