Skip to content

Provide & inject not working when injection has default value #2071

@07akioni

Description

@07akioni

Version

3.0.0-rc.10

Reproduction link

https://codesandbox.io/s/vue-provide-inject-mg2oy?file=/src/index.js

Steps to reproduce

https://codesandbox.io/s/vue-provide-inject-mg2oy?file=/src/index.js

What is expected?

It should render without error

Accroding to https://v3.vuejs.org/api/options-composition.html#provide-inject

I think it should work

image

What is actually happening?

injection is null

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