How can I show success on client using server action?
I am trying to useForm method. I want to show some nice UI when the form submits correctly. I am using NextJS and server actions. In my useForm config, I am trying to do this:
But the state is old, so I think I'm looking at the wrong object? My server action for example would return {success: true/false}
But the state is old, so I think I'm looking at the wrong object? My server action for example would return {success: true/false}