Skip to content

Does ref() work with Set? #10834

Apr 29, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Watch is not deep by default. if you put the set in a ref, and then watch the ref, then the watch only triggers if you assign a new value to the ref, not if you mutate the set within the ref.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anchan42
Comment options

Answer selected by LinusBorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants