Glossary term
What is Server Action? Meaning for developers
In Senior Frontend Depth
A function marked "use server" that runs on the server but can be called from the client. It is a public endpoint, so it needs auth and validation.
Learn it properly · Senior Frontend DepthLesson 2: Concurrent React, Suspense and Server Components in Next.jsTransitions, Suspense boundaries, streaming SSR, hydration errors and the line between server and client components.In Full-Stack Questions
A function marked to run on the server that a form or button can call. Treat it like a public API endpoint.
Learn it properly · Full-Stack QuestionsLesson 5: Next.js Interview QuestionsApp Router, Server and Client Components, caching, Server Actions, proxy, rendering modes and deployment.In Next.js App Router
An async function marked 'use server' that runs on the server and is called from a form or button over a POST request.
Learn it properly · Next.js App RouterLesson 3: Server Actions, Forms and MutationsForms that call server functions, validation, pending and error states, revalidating after a change, and the security rules for actions.