Skip to content

Clarify DOM updates should be awaited on API documentation #1626

Closed
@99linesofcode

Description

@99linesofcode

What problem does this feature solve?

New developers such as me might not be aware that certain API methods are asynchronous and expect DOM updates to be handled automatically.

Specifically, the setProps() usage states: Sets Wrapper vm props and forces update. which threw me off.

Now, I realize this is blatantly obvious to those who know their way around Vue.js but I found myself spending quite a bit of time figuring this out.

What does the proposed API look like?

  1. We clearly state whether a method is performed asynchronously or is otherwise batched by Vue. ie. in the usage section.
  2. We link to the guide that explains this behavior in greater detail for all methods that can be awaited.

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