ref variable to unref #10204
Closed
sefaun
started this conversation in
General Discussions
Replies: 2 comments 2 replies
-
const var1 = ref(1)
const var2 = var1.value I must be missing something? |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can also use: import { ref, unref } from "vue";
const var1 = ref(1);
const var2 = unref(var1); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a variable. I need to remove ref feature that variable. is there any clear and correct way ?
Beta Was this translation helpful? Give feedback.
All reactions