-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access of array per index isn't tracked #2427
Labels
Comments
I want to know why please |
posva
changed the title
Use 'for (index in array) {}' in computed or methods. When the array is initialized to empty, adding array items cannot refresh the view
for of inside of a computed doesn't track changes
Oct 19, 2020
@posva It's relate to |
posva
changed the title
for of inside of a computed doesn't track changes
Access of array per index isn't tracked
Oct 19, 2020
Although the behavior of |
@yyx990803 可以请教下为什么以下2种情况使用for in 视图依然可以同步更新吗: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: