beautiful-react-hooks
Version:
A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development
7 lines (6 loc) • 320 B
TypeScript
import { GenericFunction } from './shared/types';
/**
* Returns a callback setter for a callback to be performed when the component will unmount.
*/
declare const useWillUnmount: <TCallback extends GenericFunction>(callback?: TCallback) => import("./shared/types").CallbackSetter<void>;
export default useWillUnmount;