Closed alsotang closed 5 years ago
Now I can only use a condition var to exit the callback. But the watch is still running, not release.
Wait some hours. I will write tests for this pr.
Maybe we should annotate the return type⁉
yep. I will add return type
ok. Tests and return type annotation are added.
Thanks for your contribution. Lgtm.
Looks good! Thanks for the contribution.
please publish a new version to npm. thank you
https://vuex.vuejs.org/api/#watch
I call
$watch
in a component created, and wanna stop it when destroyed