seatgeek / react-infinite

A browser-ready efficient scrolling container based on UITableView
Other
2.71k stars 273 forks source link

setState being called after unmount #287

Open dfrese opened 5 years ago

dfrese commented 5 years ago

I see the React warning "Warning: Can't call setState (or forceUpdate) on an unmounted component." regularly, in particular in the setTimeout context initiated from manageScrollTimeouts.

The component should either cancel all timeouts in willUnmount, or check if's still mounted before each setState in asynchronous contexts.

Version 0.13.0.