Define 'large' datasets.
Nov 25, 2023
3
Level 1
V-model and v-for becomes slow when dealing with large datasets.
Please help : (if could, please answer with example of code :D)
"The v-for directive becomes slow when dealing with large datasets. Note: My data is local, not from an API. I have only one button that, when clicked, adds new data to the 'items' array. Within the loop, there are five inputs that work with v-model. After clicking the 'add item' button more than 30 times, the pre-rendering process becomes noticeably slow. Please help me. Here is my example code below:"
<tr v-for="(item,index) in items" :key="index">
<td> .... </td>
<td>
<input type="number" step="0.01" v-model="item.price" class="form-control">
</td>
...... more td + input with v-model
</tr>
Please or to participate in this conversation.