Access of array per index isn't tracked
Version
3.0.1
Reproduction link
https://codepen.io/javie5/pen/jOrrYVx
Steps to reproduce
Click the 'add item' button
What is expected?
array item grouping rendering
What is actually happening?
Use 'for (index in array) {}' in computed or methods. When the array is initialized to empty, adding array items cannot refresh the view
Currently in JS there is no trap for for in
in Proxy. So it may not be consider as a bug but rather a constraint of JS.
https://github.com/tc39/ecma262/pull/367
Although the behavior of for in
can't be proxyed, ownKeys
would be called when execute for in
.