I am working on a Nextjs web application. I am using server actions for fetching data and submitting forms using rest apis in java spring boot. It works great. However, I have a few doubts in my mind and I noticed a couple of drawbacks as well.
For server action, they do not show up in network tab. So, for manual QA it is not possible to see what is being sent to server and what is being returned.
How much of a difference will it make if I ditch server actions and stick with client api calls?
I would appreciate a detailed answer to help me understand this.
SO isn't generally meant for open-ended questions, but I'd like to help.
When you're using Next.js and Server Actions you are in essence creating yet another server to talk to your Java server. Yes, you could easily switch to client api calls. But, depending on your application requirements, it should probably have a stronger motivation than just to be able to see the api calls in the network tab.
Why you might prefer server actions:
Suggestions for manual testing of server actions: