-
Notifications
You must be signed in to change notification settings - Fork 669
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
Cannot trigger method updated Vue lifecycle #455
Comments
@eddyerburgh |
No, I think the solution is to either make a change to Vue core, or reimplement |
Thank you for reply. If you are not resolving this issue currently, |
Even if the behavior is different, |
Ok, that would be great if you could investigate. I'd be interested to see a solution. I'm going to investigate changing Vue core to add a sync option this weekend so we can compare solutions 👍 |
I am sorry. |
That's fine, this issue might take a while to solve. Another bug caused by setting the watcher to sync is that a listeners warning is thrown. I described the problem here, and I'm not sure there's a fix apart from setting Vue to silent while the render watcher runs, which would swallow errors. |
This issue was resolved at #675. |
Version
1.0.0-beta.11
Reproduction link
https://github.com/dungla4/vue-test-utils-vuex-router
Steps to reproduce
npm install
oryarn install
npm test
oryarn test
What is expected?
Should call
updated
Vue lifecycle method and print in logWhat is actually happening?
Not trigger
updated
method, just triggermounted
methodNormally,
updated
is triggered when template is changed. I tried to change data bywrapper.setData
, or set data directly viawrapper.vm.msg = ..
but no luck. This function works well if you run project by commandyarn start
and click some link at the bottom of pageThe text was updated successfully, but these errors were encountered: