Ant Design FAQ

62次阅读
没有评论

You are calling notice in render which will break in React 18 concurrent mode.

不使用Hooks调用方式,改为调用静态方法方式。

不过官方文档不推荐静态方法调用方式,推荐的是Hooks调用方式。

参考:

正文完
 0
wujingquan
版权声明:本站原创文章,由 wujingquan 于2024-09-04发表,共计240字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)