Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!