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
useContext hook优化建议 #3803
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Subject of the feature
Problem
我在尝试把Basic form这些组件抽离出来组成一个组件库的时候碰到了一个警告
inject() can only be used inside setup() or functional components.
然后我根据控制台提供的调用堆栈 发现了警告在useContext.ts这个hook当中
这个问题在开发环境的时候不会出现 打包后就出现了
Expected behaviour
What should happen? Please describe the desired behaviour.
Alternatives
是否可以使用Map来替代Vue3的provide和inject?
The text was updated successfully, but these errors were encountered: