Skip to content

Is there a difference between using the value of ref or do unref for that ref? #9449

Discussion options

You must be logged in to vote

You should simply use .value if you look at https://vuejs.org/api/reactivity-utilities.html#unref, you can see it's just a wrapper around the following val = isRef(val) ? val.value : val, you already know from the context (and typescript probably) that it's a ref in this case.

Replies: 1 comment 1 reply

Comment options

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

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