react报错:Can't perform a React state update on an unmounted component
在React开发中,我们可能经常会遇到这个一个警告: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.我们不能在组件销毁后设置state,防止出现内存泄漏的情况关于react中切换...
转载
2020-04-27 23:39:56 ·
366 阅读 ·
0 评论