Skip to content

Component watcher fired multiple times when passing props as array (in the template) #9223

@gilles-crealp

Description

@gilles-crealp

Version

2.5.21

Reproduction link

https://jsfiddle.net/eywraw8t/510740/

Steps to reproduce

Go to the reproduction link, run the code and watch the console.

What is expected?

First watcher (watcher one (A)) to be called only once.

What is actually happening?

First watcher (watcher one (A)) is called twice (at the same time that the second prop is modified).


Happens only when you pass a prop changed to array in the template.

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