reset after form success
using nextjs server actions and tanstack form, how can i reset the form if the request succeeds ?
1 Reply
unwilling-turquoise•3mo 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: