formsVercel
Unsaved Changes
MUST
MUST: Warn on unsaved changes before navigation
Warn before navigation when data could be lost
Bad
Good
Why it matters
Track form modifications and show a confirmation dialog if the user tries to navigate away or close the tab with unsaved changes. Use the beforeunload event for page unload and custom logic for in-app navigation.
References