Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vinicius73 opened this issue Jul 15, 2022 · 0 comments
Closed

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

vinicius73 opened this issue Jul 15, 2022 · 0 comments

Comments

@vinicius73
Copy link

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant