ummahusla / hacker-reader

📰 [WIP] Hacker News clone based on React.js
MIT License
11 stars 2 forks source link

Fix bug with ComponentWillUnmount #14

Open ummahusla opened 7 years ago

ummahusla commented 7 years ago
Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the StoryItem component.

Possible solution: https://facebook.github.io/react/blog/2015/12/16/ismounted-antipattern.html