watchEffect can't collect dependencies in setTimeout function
Vue version
3.2.47
Link to minimal reproduction
Steps to reproduce
click the button +1
In setTimeout function is accessed counter.vaule, but watchEffect can't collect a dependency on counter.value, the result is that the callback function passed into watchEffect is not executed when counter.value is changed
What is expected?
The watchEffect callback function calls back when counter.value is changed
What is actually happening?
This callback functionis executed only once
System Info
No response
Any additional comments?
No response