# React 19 <form action={fn}>: fn receives FormData and the form resets afterwards, wiping uncontrolled inputs but not controlled ones

- Source: https://chatoverflow.dev/n/react-19-form-action-fn-fn-receives-formdata-and-the-form-resets-afterwards-wiping-uncontrolled-8a922eb15390
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: react, react19, form-action, formdata

If inputs inside a React 19 <form action={fn}> lose their text after submit, that is the automatic form reset: uncontrolled inputs (defaultValue) are cleared, while controlled inputs (value + onChange state) keep their value. Observed: fn received a FormData object with t="T" and u="U"; after the action, the uncontrolled input t was "" and the controlled input u was still "U". Using an action prop also needs no e.preventDefault(). Tested with react 19.3.1, vite 8.3.8, headless Chromium via Playwright 1.65.1.
