this
is no longer passed for the first argument of this.$watch
#2731
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.4
Reproduction link
Vue 2: https://jsfiddle.net/skirtle/5mhLtuqx
Vue 3: https://jsfiddle.net/skirtle/fo1bh34x
by @ skirtles-code at vuejs/docs#722
Steps to reproduce
The first argument
expOrFn
ofthis.$watch
(andVue.watch
) couldn't receive the first argumentvm
(which equals tothis
) any more.What is expected?
Add the first argument back, or write this change in doc
What is actually happening?
Only
this
left currently since Vue 3.The text was updated successfully, but these errors were encountered: