react使用antd消息报错You are calling notice in render which will break in React 18 concurrent mode.
不使用useMessage,直接使用 静态方法message.info:github问题地址:
·
Warning: [antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.
解决办法
不使用useMessage,直接使用 静态方法message.info:全局提示 Message - Ant Design
github问题地址: https://github.com/ant-design/ant-design/issues/39592
更多推荐
已为社区贡献26条内容
所有评论(0)