storeToRefs breaks reactivity with Ref<Set> #2754
-
ReproductionSteps to reproduce the bugClick on the "add to n and m" button. Expected behaviorThe sets of Actual behaviorOnly the set of The values of each Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Maybe it's a separate issue, but in the example you can also see that assigning a |
Beta Was this translation helpful? Give feedback.
-
The problem lies on the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick solution. I had thought |
Beta Was this translation helpful? Give feedback.
The problem lies on the
watch(s, ...
Since s is a ref of the set, it will only trigger if the value changes, that means if a new set is assigned. For what you want, you need to usedeep: true
in your watcher.