Warning: Can't perform a React state update on an unmounted component.

Explanation:

5430411-5acca82bf339afe3.png
warning.png

This is because the components are uninstalled, components still function can call setState , search setState will be able to troubleshoot the problem.
Generally it consists of listening to events or asynchronous cause.

solve:

The problem components componentWillUnmount the remove event listeners or cancel asynchronous function execution.

Guess you like

Origin blog.csdn.net/weixin_33896069/article/details/91003864