react-useunmount

Utilise state and other data on component unmount with minimal code. Often used as the hooks alternative to componentWillUnmount.

inject-react-unmont

'解决异步请求时,出现不能在已经被销毁的组件中调用setState()方案。Can’t call setState (or forceUpdate) on an unmounted component '