@rooks/use-will-unmount
A React hook for componentWillUnmount lifecycle method
Found 7 results for componentWillUnmount
A React hook for componentWillUnmount lifecycle method
A collection of hooks that helps you to track the lifecycle of your components in a similar way to class components.
Use a class-based lifecycle ⚡ under the React Hooks ⚛️🚀 ..
Helpers functions arround useEffect hook to make your life easier, providing the most use cases of useEffect hook, among them the lifecycle of class component.
Utilise state and other data on component unmount with minimal code. Often used as the hooks alternative to componentWillUnmount.
'解决异步请求时,出现不能在已经被销毁的组件中调用setState()方案。Can’t call setState (or forceUpdate) on an unmounted component '
React mixin for listenable componentWillUnmount