Disable form reset when using server actions
Unanswered
American Wirehair posted this in #help-forum
American WirehairOP
Hi, im using server actions with a forms. And I wish to prevent the form from reseting all the values when the server action returns. The server action returns a data structure with validation errors which I want to display, without the form loosing its entered values.
How can I do this? I manage to do this previously, but now I cant recreate this behaviour. No matter what the form is reset when the server action returns.
How can I do this? I manage to do this previously, but now I cant recreate this behaviour. No matter what the form is reset when the server action returns.
3 Replies
are you on nextjs 15 @American Wirehair
nextjs 15 uses a canary version of react 19