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

warning should be triggered when the injectionKey is undefined #761

Closed
webfansplz opened this issue Jul 14, 2021 · 0 comments · Fixed by #760
Closed

warning should be triggered when the injectionKey is undefined #761

webfansplz opened this issue Jul 14, 2021 · 0 comments · Fixed by #760

Comments

@webfansplz
Copy link
Member

Version: 1.0.0-rc.14

The reproduced demo is: https://codesandbox.io/s/angry-hodgkin-crnyd

The main code is as follows:

<script>
import { inject } from "@vue/composition-api";
export default {
  name: "HelloWorld",
  setup() {
    const emptyKey = inject();
    console.log(emptyKey); // should warn unfound
    return {
      msg,
    };
  },
};
</script>
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

Successfully merging a pull request may close this issue.

1 participant