[Vuejs]-Why v-for on array of objects within an object, doesn't update even with :key?

1👍

I’m guessing that the problem is that the reactivity is not setup on component initialization. Either the data is not available initially, or there are too many nested objects and arrays.

looking at this nested object…
projectConfig.files[i].paths[j]

that is a string in an array in an object in an array in an object.

if the array is empty when the component is initiated, the reactivity is not added. You can try using slice and $set to trigger the reactivity.

👤Daniel

Leave a comment