Closed
Description
Vue version
3.3.12
Link to minimal reproduction
Steps to reproduce
Click on Update Obj1 (should NOT trigger the watcher)
and you will see the message of the watcher having triggered.
What is expected?
That the watcher is not triggered since it is watching a shallowReactive
array and has set { deep: false }
, so only should trigger when applying changes to the array
What is actually happening?
It is triggeing also when props of objects in the array are changed
System Info
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 22.42 GB / 31.93 GB
Binaries:
Node: 20.7.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.1.0 - C:\Program Files\nodejs\npm.CMD
pnpm: 8.8.0 - ~\AppData\Roaming\npm\pnpm.CMD
Browsers:
Chrome: 120.0.6099.129
Edge: Chromium (120.0.2210.91)
Internet Explorer: 11.0.19041.3636
npmPackages:
vue: ^3.0.0 => 3.3.12
Any additional comments?
In my case (open source vue project), is causing an extra overhead and lower performance since it is triggering and causing unwanted loop