I'm looking into using TanStack Form in a Next.js app using server actions:
.tsx .ts
I might be missing something obvious, but neither the docs or the code examples show how to actually handle the happy path:
- the server action processes the form data and returns a success message:
- the client side code is notified about it and confirms to the user:
// where and how to check this?
if(state.isSuccess === true){
console.log('Saved')
}
can anybody please point me to some more detailed examples on how to achieve this in a TanStackForm-way?