UNPKG

208 BTypeScriptView Raw
1/**
2 * Attach a callback that fires when a component unmounts
3 *
4 * @param fn Handler to run when the component unmounts
5 * @category effects
6 */
7export default function useWillUnmount(fn: () => void): void;