Vue version
all (>=v3.2.16)
Steps to reproduce
- Open
Link to minimal reproduction
- Enter some spaces and watch the counter change
What is expected?
Do not call watchCallBack if the value has not changed; for example, if watch is listening for changes to an object in computed and the object's value is undefined for the next few changes, then watchCallBack should not be triggered.
The current behavior of watch in the above case leads to some hidden vulnerabilities that are hard to debug.
What is actually happening?
When using the deep mode of watch, watchCallBack will be triggered even if the value does not change.
System Info
No response
Any additional comments?
No response