Search results
8 packages found
Utilise state and other data on component unmount with minimal code. Often used as the hooks alternative to componentWillUnmount.
Use a class-based lifecycle ⚡ under the React Hooks ⚛️🚀 ..
- react
- reactjs
- react native
- react hooks
- lifecycle hooks
- newcomers
- useEffect
- componentDidMount
- useComponentDidMount
- componentDidUpdate
- useComponentDidUpdate
- componentWillMount
- useComponentWillMount
- componentWillUnmount
- View more
A React hook for componentWillUnmount lifecycle method
HOC for set a flag when componentWillUnmount, bypass `Can't perform a React state update on an unmounted component` warning
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.
- hook
- react
- custom
- lifecycle
- component
- class
- methods
- componentDidUpdate
- componentDidMount
- componentWillUnmount
- useDidUpdate
- useDidMount
- useWillUnmount
A collection of hooks that helps you to track the lifecycle of your components in a similar way to class components.
- hook
- react
- custom
- lifecycle
- component
- class
- methods
- componentDidUpdate
- componentDidMount
- componentWillUnmount
- useDidUpdate
- useDidMount
- useWillUnmount
'解决异步请求时,出现不能在已经被销毁的组件中调用setState()方案。Can’t call setState (or forceUpdate) on an unmounted component '
React mixin for listenable componentWillUnmount