Skip to content
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

ref value change in life-cycle hooks does not trigger watch & watchEffect #12624

Closed
dani-zahonyi opened this issue Jul 6, 2022 · 0 comments
Closed

Comments

@dani-zahonyi
Copy link

Version

2.7.3

Reproduction link

codesandbox.io

Steps to reproduce

Click on the "toggle" button to see, that callbacks are not called in the child component (Child.vue) after mount, activate, and deactivate.

In App.vue after mount watch does not run either.

What is expected?

WatchEffect & watch callbacks should be called after ref value changed in onMounted, onActivated

What is actually happening?

watch, watchEffect callbacks not called after the value changed in life-cycle hooks (onMounted, onActivated, onDeactivated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant