Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Server Actions in Next.js 13.4 (nextjs.org)
6 points by asadm on May 4, 2023 | hide | past | favorite | 3 comments


What's the point of this? I've tested it and it just sends a post request to an under-the-hood generated API endpoint. It does not allow me to do form validations nicely, does not speed up anything as it's still just a POST request to an AWS Lambda function.

And like how do I protect this generated endpoint? I just dont get this whole feature.

Leerob maybe explain pls?


>"Server Actions in Next.js have been designed for deep integration with the rest of the data lifecycle, including the Next.js Cache, Incremental Static Regeneration (ISR), and the client router."

I'm personally going the other way, moving as much logic as possible out of Next.js. I want to keep my frontend clean, simple and separated from the backend as much as possible as this is clearly where must of the churn happens.


index.php is back




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: