VitorLuizC / vue-uuid

Add UUID to Vue instance.
MIT License
73 stars 7 forks source link

In certain contexts using uuid.v4() creates an endless loop #24

Closed Jordan1022 closed 1 year ago

Jordan1022 commented 1 year ago

We are using vue-uuid in 2 different apps and overall use is great but we have 2 contexts so far, I'm confirming if there are more, that create endless loops using uuid.v4(). not certain why this is. For context here are the v-tabs we are using that use v-for and a key: ` <v-tabs class="wegive-header-tabs mb-2 mt-n5" mandatory hide-slider v-model="tab" :show-arrows="$vuetify.breakpoint.mobile" center-active

<v-tab class="tab-hover mx-1" v-for="(item, index) in years" :key="$uuid.v4(index)" <span style="font-weight: normal; line-height: 1" class="text-on-tab"

{{ item }}</span

` this is all inside a component which contains graph data and is rendered inside a Home copmonent.