react.js函数组件解决内存泄漏警告
为大家分享一个警告信息
devScripts.js:5836 Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup functi
原创
2020-11-27 16:26:03 ·
632 阅读 ·
0 评论