Skip to content

Document about nextTick difference between English and Chinese #1451

Closed
@zkd8907

Description

@zkd8907

Version

1.0.0-beta.31

Reproduction link

https://jsbin.com/pokuluhado/edit?html,js

Steps to reproduce

In Chinese version, it says there is no need to use Vue.nextTick() because Vue Test Utils has applied it. But in English Version, it says We need to use Vue.nextTick() to wait until Vue has performed the DOM update after we set a reactive property.
My question is, which one is correct? After my testing, I found that if I changed the data of component without using Vue.nextTick(), wrapper.html() is still the original value.

What is expected?

As Chinese Version, there is no need to use Vue.nextTick().

What is actually happening?

Test failed.

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