阅读背景:

解决React组件Unmount时依然继续setState报错的问题_qq_15557771的博客_react unmount

来源:互联网 

写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. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.Can't perform a React state u




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: