vue 3.2.38 latest version watcher bug
Vue version
3.2.38
Link to minimal reproduction
Steps to reproduce
Sorry, I'm a Chinese. I speak Chinese later 应该是 解决 #2291 bug的时候,造成的问题; 务必引用vant组件,调用Toast () 可以复现 //子组件
//父组件
What is expected?
修复watch执行两遍的问题
What is actually happening?
watch执行两遍
System Info
No response
Any additional comments?
No response
U provided the minimal reproduction! I try it and Watcher is called once
When I run this SFC playground reproduction and enter "a" into the input, I get 2 alerts - one from the watch, one from the onUpdated() hook.
Both are expected. I don't see multiple watcher calls, I don't see anything else supsicious. What should I be looking for?
Those of you who say they can reproduce this: what browser are you using?
Edit: translating the chinese text tells me I have to use vant to reproduce, not the example in the playground?
Sounds like you need to a) open an issue with vant or b) find a way to reproduce the problem without vant. I don't see what we should be doing here.
@LinusBorg like this, example
@LinusBorg like this, example
This may not be Vue's problem,Remove line 10 and try again
We don't have the capacity to debug vant, or arco-design.
Please open an issue with them.
Maybe they can verify it and create a reproduction that does not involve their big third party library, so we can actually evaluate the problem with Vue alone.