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

What's the counterpart of Vue.nextTick for mobx-vue? #44

Open
Louis-Tian opened this issue Jul 3, 2020 · 0 comments
Open

What's the counterpart of Vue.nextTick for mobx-vue? #44

Louis-Tian opened this issue Jul 3, 2020 · 0 comments

Comments

@Louis-Tian
Copy link

Louis-Tian commented Jul 3, 2020

When unit testing Vue components, it is often necessary to call await vm.$nextTick() to ensure the rerender is completed before accessing the component's DOM for assertion.

As far as I understand, mobx-vue triggers the rerender directly, and has nothing to do with Vue's Async Update Queue. Therefore vm.$nextTick would not work for mobx-vue.

So the question is how would one do the same thing as nextTick with mobx-vue?

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