Skip to content

storeToRefs breaks reactivity with Ref<Set> #2754

Closed Answered by posva
ryanolf-tb asked this question in Help and Questions
Discussion options

You must be logged in to vote

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 use deep: true in your watcher.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ryanolf-tb
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2753 on August 28, 2024 06:23.