Skip to content

Pitfalls of Vue dependency detection may cause redundant dependencies #7573

Closed
@xiaodemen

Description

@xiaodemen

Version

2.4.2

Reproduction link

https://jsfiddle.net/sbmLobvr/9/

Steps to reproduce

click the button,then App component will update twice!

What is expected?

App component updates only once

What is actually happening?

App component updates twice


When props used in child component initialization,they will be detected as dependencies of parent component, Is there possible to stop dependency detection when entering child component initialization。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions