Skip to content

computed returns a data trigger of the reference type that does not match the expectation #308

Description

@huangmingfu

(bug demo)

It should only perform the callback once initially, but it is also performed when the 'push' subitem is executed

When I run this code in the project, it works as expected, but playground refires every time I push it

Image

The following actions should trigger the callback again:

<button @click="testArr = [{ label: '3', value: '3' }]">修改arr</button>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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