📄 useWillUnmount.d.ts
/home/palash/git/site/node_modules/@restart/hooks/cjs/useWillUnmount.d.ts
Language: ts • Lines: 7
/**
 * Attach a callback that fires when a component unmounts
 *
 * @param fn Handler to run when the component unmounts
 * @category effects
 */
export default function useWillUnmount(fn: () => void): void;