GitHub repository: worksofhart/react-router-override-prompt
Primary language: JavaScript
Created: 2019-12-27T11:55:32Z
Description: Override React Router's default Prompt component behavior to perform an Axios call when navigating away from an unsaved form. Example for a colleague. Theoretically one could send unsaved form data to the server, which raises privacy questions due to autofill features potentially exposing data the user didn't intend to share.