-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watch not detect change when ref is changed inside this watch #1727
Comments
You can pass the |
Thank you for response. Yeah, sync will be working. If it is expected behaviour, feel free to close the issue. |
…iggering fix #1740 Previous fix for #1727 caused `watchEffect` to also recursively trigger itself on reactive array mutations which implicitly registers array `.length` as dependencies and mutates it at the same time. This fix limits recursive trigger behavior to only `watch()` callbacks since code inside the callback do not register dependencies and mutations are always explicitly intended.
Version
3.0.0-rc.4
Reproduction link
https://jsfiddle.net/zs3td94f/
Steps to reproduce
What is expected?
Every click fire console output
What is actually happening?
Only one log. Watch not detect change which made inside watch callback
This behaviour appeared in version 3.0.0-beta.23
There are link to the same example with 22 version
https://jsfiddle.net/hg64rkdx/3/
In the version 22 watch fires twice per click
The text was updated successfully, but these errors were encountered: