Closed efernandesng closed 8 years ago
In version 1.2.0
I've moved updating count to componentDidMount, see if this helps.
Thanks for update :)
Apparently the problem is fixed, but occurs another similar problem: when the component make jsonp request and is unmounted before it finish and we get another setState warning. A possible solution is cancel all pending requests in componentWillUnmount
.
warning.js:45 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 undefined component.
react@0.14.8