7 lines
218 B
TypeScript
7 lines
218 B
TypeScript
/**
|
|
* Hook which synchronously executes a callback when the component is about to unmount.
|
|
*
|
|
* @param callback - Function to call during unmount.
|
|
*/
|
|
export declare const useUnmount: (callback: () => void) => void;
|