mukul-react-hooks
Version:
A comprehensive collection of custom React hooks for modern web development. Includes utilities for fullscreen management, media queries, timeouts, scroll detection, and unsaved change alerts. Built with TypeScript for type safety and optimized for tree-s
9 lines • 418 B
TypeScript
/**
* A custom React hook that provides functionality for handling unsaved changes and displaying an alert when attempting to leave the page.
*
* @param {boolean} hasUnsavedChanges - Indicates whether there are unsaved changes.
* @returns {void}
*/
declare const useUnsavedChangeAlert: (hasUnsavedChanges: boolean) => void;
export default useUnsavedChangeAlert;
//# sourceMappingURL=useUnsavedChangeAlert.d.ts.map