Came up with this little snippet for Vue a couple years back that will assign a uid as a key on initial render and reuse the same key for subsequent renders. It's nothing fancy, but it's sure helpful.
functionuid(el){if(el.uid)returne.uid;// Could be replaced with actual uuid from libconstkey=Math.random().toString(16).slice(2);Vue.set(el,'uid',key);returnel.uid;}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Came up with this little snippet for Vue a couple years back that will assign a uid as a key on initial render and reuse the same key for subsequent renders. It's nothing fancy, but it's sure helpful.