Skip to content

Inject Provide does not work anymore in 2.7.x #12667

@vinicius73

Description

@vinicius73

Version

2.7.x

Reproduction link

https://codesandbox.io/s/vue-2-7-inject-provide-mweuuw

Steps to reproduce

We are used to using inject provide to share services instances across our components.
We use v-if to control the render of components while the service is not available yet.

It works perfectly in Vue 2.6.x, but it not works anymore in 2.7.x

What is expected?

Child component receive the correct injection.

What is actually happening?

Child components always receive undefined.


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