We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
4.1.0
https://www.antdv.com/components/message-cn
调用官方 message 示例,控制台警告:Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function
const info = () => { messageApi.info('Hello, Ant Design Vue!'); }; </script>
不要警告
警告:Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function
The text was updated successfully, but these errors were encountered:
fix: hook warning, close #7281 #7273 #7274
c717473
update 4.1.1
Sorry, something went wrong.
更新4.1.1
更新4.1.2也有同样的问题,只能舍弃[Hooks 调用]用open
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
Version
4.1.0
Environment
4.1.0
Reproduction link
https://www.antdv.com/components/message-cn
Steps to reproduce
调用官方 message 示例,控制台警告:Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function
Display normal message <script lang="ts" setup> import { message } from 'ant-design-vue'; const [messageApi, contextHolder] = message.useMessage();const info = () => {
messageApi.info('Hello, Ant Design Vue!');
};
</script>
What is expected?
不要警告
What is actually happening?
警告:Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function
The text was updated successfully, but these errors were encountered: