-
-
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 handler not executed immediately if source returns undefined #683
Labels
🐞 bug
Something isn't working
Comments
Seems to be caused by setting oldValue before first run to undefined, then checking against the result of the getter which is also undefined so no runs will take place until the value is changed. |
posva
added a commit
to posva/vue-next
that referenced
this issue
Feb 3, 2020
yyx990803
pushed a commit
that referenced
this issue
Feb 4, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.0-alpha.4
Reproduction link
https://codepen.io/jkarczm/pen/ZEYgEXd?editors=0011
Steps to reproduce
What is expected?
null watched
andundefined watched
in consoleWhat is actually happening?
only
null watched
in consoleThe text was updated successfully, but these errors were encountered: