07 2022 档案
React报错Warning: Can't perform a React state update on an unmounted component.
摘要:在React开发中,这样的报错会经常遇到:Warning: Can't perform a React state update on an unmounted component. 原因就是报错中所说:无法对已卸载的组件执行react状态更新。 假设现在我们正在A页面调接口请求数据,请求成功后se
阅读全文