How to access unique component ID #7549
Answered
by
fanckush
fanckush
asked this question in
Help/Questions
-
if I remember correctly, in vue 2 we used to have this.uid // or this._uid how can I get this same value with script setup in vue 3 <script setup>
const uid = // ... ?
</script> |
Beta Was this translation helpful? Give feedback.
Answered by
fanckush
Jan 17, 2023
Replies: 1 comment
-
read a bit more, turns out we are not supposed to use _uid as it's internal and should instead just generate our own unique id using a utility for example |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fanckush
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
read a bit more, turns out we are not supposed to use _uid as it's internal and should instead just generate our own unique id using a utility for example