2.5.17
https://jsfiddle.net/Lalmat/eywraw8t/336389/
I've isolated the bug here : https://jsfiddle.net/Lalmat/eywraw8t/336389/
To reproduce :
1) Try to hide/show the hello world message, the redraw is instant
2) Use the load data button
3) Try to hide/show the hello world message, there's a lag that is fully dependant of you CPU velocity.
It seems that there's a setTimeout inside vue that cause this lag
Instant redraw
Lag during redraw depending of computer CPU
I use cross arrays to avoid using a toggle function. I'm completely aware that this code is kind of tricky but I can't understand why there's a lag...
This is why I follow this to experts :)
It's not a setTimeout. Performance timeline shows massive dependArray calls, which is caused by array access in v-model
<input type="checkbox" v-model="bat.lines[line.id].checked">

I'm not familiar with the code but perhaps this PR would fix this.
A quick workaround (or maybe the correct way in your case) is to use an object for bat.lines since you're using it as a hash map(direct access by key) rather than an array. See https://jsfiddle.net/eywraw8t/336702/
Working, thank you !
Another solution that worked for me with one-way binding and a click event handler.
Most helpful comment
It's not a setTimeout. Performance timeline shows massive
dependArraycalls, which is caused by array access in v-modelI'm not familiar with the code but perhaps this PR would fix this.
A quick workaround (or maybe the correct way in your case) is to use an object for
bat.linessince you're using it as a hash map(direct access by key) rather than an array. See https://jsfiddle.net/eywraw8t/336702/