Skip to content

Using default parameter for functional component props will cause context paramter to be null #6580

Open
@yangjunjun

Description

@yangjunjun

Vue version

3.2.38

Link to minimal reproduction

https://stackblitz.com/edit/vue-8cme9l?file=src/components/TheTest.js

Steps to reproduce

just visit reproduction link

What is expected?

should not throw errow

What is actually happening?

throw error

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧹 p1-chorePriority 1: this doesn't change code behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions