reset after form success
using nextjs server actions and tanstack form, how can i reset the form if the request succeeds ?
1 Reply
fascinating-indigo•2w ago
There is
formApi
available in onSubmit
callback inside useForm
hook. Not sure how exactly NextJS works as you didn't provided any example but this is how you can reset form using useForm
hook: