You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
watch a reactive array, the callback function is called with the new value only
What is expected?
second argument should be the old value
What is actually happening?
both arguments are the new value
potentially related to #1655 . Unsure if this is the proper way to watch for an array, since this returned a plain array before #1656 (it is a Proxy now)
Also is there a more idomatic way to watch for changes in an array of objects? e.g. leveraging what Vue already does for DOM updates.
The text was updated successfully, but these errors were encountered:
Version
3.0.0-rc.6
Reproduction link
https://codesandbox.io/s/quiet-dream-jwnql?file=/src/index.js
Steps to reproduce
watch a reactive array, the callback function is called with the new value only
What is expected?
second argument should be the old value
What is actually happening?
both arguments are the new value
potentially related to #1655 . Unsure if this is the proper way to watch for an array, since this returned a plain array before #1656 (it is a Proxy now)
Also is there a more idomatic way to watch for changes in an array of objects? e.g. leveraging what Vue already does for DOM updates.
The text was updated successfully, but these errors were encountered: