usehooks
usehooks copied to clipboard
fix: Restore original document title on unmount in useDocumentTitle hook
This pull request addresses an issue where the useDocumentTitle hook does not revert the document title back to its original value when the component using it unmounts. Without this adjustment, navigating away from a component that sets the document title would leave the title in an incorrect state, potentially confusing users and affecting the user experience negatively.