Skip to content

Named mixins functions have a bug infering types of inject properties Vue 2.7.14 #12931

Open
@ColinRosati

Description

Version

2.7.14

Reproduction link

codesandbox.io

Screenshot 2023-01-16 at 6 42 05 PM

Screenshot 2023-01-16 at 6 42 13 PM

Steps to reproduce

When declaring mixins with named function we can't use properties. See inject properties not inferred.

What is expected?

Named function mixins data is properly inferred

What is actually happening?

There is a problem using mixins that are declared as named functions


I ran into this problem upgrade from 2.6 to 2.7.17 and our app using named function mixins

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