Skip to content

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

@Louis-Tian

Description

@Louis-Tian

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions