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?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744282496a4566638.html
评论列表(0条)