Closed nbolender closed 7 years ago
@nbolender I don't know about this one. I'm wondering if the componentWillMount() should be changed to componentDidMount()
@jayesbe I'm going to do some exploration to try to find a better solution. There are some problems when just changing componentWillMount to componentDidMount.
Fixes #22 by not calling setState until after the component is mounted, and by preventing calls to it as the component is unmounting.
I would say going about this a different way may be better, but would require several updates to make sure we aren't setting state before the component mounts.
This also seems to solve the earlier issue I had where certain images were being saved to the disk at 0 bytes, and then never displaying.