In one of my React projects I have a simple form that tracks changes. I don\'t want that the user simply can leave the current page when unsaved changes would get lost.