Seeing Called setState() on an Unmounted Component in your console is one of the most frequent issues faced by newcomers to React. When you’re working with class components, you can easily create situations where you encounter this error.
Fixing React’s “Called SetState() on an Unmounted Component” Errors