-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Silence inject dev warning: injection not found #892
Comments
posva
added a commit
that referenced
this issue
Mar 28, 2020
yyx990803
pushed a commit
that referenced
this issue
Mar 30, 2020
"export 'inject' was not found in 'vue' |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What problem does this feature solve?
I am using provide/inject as component store and want to provide some value if it is not already provided by parent component, e.g.:
It works well except that on first invocation there is a warning that injection not found.
What does the proposed API look like?
Remove the warning or provide some way to silence it or "declare" injection value without overriding existing one, e.g.:
The text was updated successfully, but these errors were encountered: