Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

184
Vistas
Vue Nested Objects with V-For Computed Property

I seem to have run into an issue. my inner v-for is not being consistent with the ordering once it has changed. It shuffles every update.

I have a computed property called "List" This retrieves a state in my Pinia (vuex type) Store. The object is:

List: {
  CategoryOne: {
    item: false,
    item2: true,
    item3: false,
    item4: true
  },
  CategoryTwo: {
    item: false,
    item2: true,
    item3: false,
    item4: true
  }
}

In my first v-for, is as follows...

<div v-for="(value, index, key) in List" :key="key">
  <h1>{{ index }}</h1>
    <ul v-for="(value2, index2, key2) in value" :key="key2">
      <li>
        {{ index2 }} : {{ value2 }}
      </li>
    </ul>
</div>

The problem is, my inner v-for keeps getting shuffled everytime on refresh or update. Why is this???

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda