Menu

Post image 1
Post image 2
1 / 2
0

React 19 Server Actions in Production: A Year of Lessons From a 4M-User App

DEV Community·Nilesh Kasar·24 days ago
#Joc6efl1
#react#nextjs#server#actions#action#client
Reading 0:00
15s threshold

The PR that deleted 12,000 lines of API routes In April 2025, I merged a PR that removed 12,387 lines of /api route handlers, tRPC procedures, and useMutation hooks. We replaced all of it with React 19 Server Actions on Next.js 15.4. Twelve months later, with 4 million monthly active users on the platform, I have a clear-eyed view of what that decision bought us and what it cost. Short version: I would do it again. With caveats. What Server Actions actually are Server Actions, finalized in React 19 (December 2024), let you call a server function directly from a client component as if it were local. You annotate a function with "use server" , import it, and call it. React handles the network, serialization, and revalidation. " use server " ; export async function updateProfile ( formData : FormData ) { const name = formData . get ( " name " ) as string ; await db . user .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More