Skip to content

warns when duplicated props from mixins #1431

@TerenceZ

Description

@TerenceZ

Sometimes we would abstract some behaviours into mixins, for example: A, B and C. If A is mixed in B and C, and if the A has a required prop named a, then when component D requires B and C in mixins, vue will warn the a is required even if a value passed to a. Because one of the prop check from B or C digests the value of a, leaving another one nothing.

By the way, are there any suggestions to use / compose mixins? Because of the features of mixins, sometimes some implicit conflicts will raise up and not easy to find out. And in addition, the mixins require the component to obey some implicit interfaces, which lead to hard to maintain the codes.

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