useEffect(() => {
window.addEventListener("beforeunload", handleTabClose);
return () => {
window.removeEventListener("beforeunload", handleTabClose);
};
}, []);
In the case where a DocComment spans multiple lines, every line MUST start with an asterisk (*) that SHOULD be aligned with the first asterisk of the opening clause.