Archive

#server-actions

2 notes match these filters

  • Next.js in Practice · Part 4317 min read

    Recipes - Forms, Mutations and Uploads

    Fixes for the form, Server Action and upload problems Next.js 16 developers hit most, from a submit button that never shows pending to "Failed to find Server Action" after a deploy, each traced to the line that causes it.

  • Next.js in Practice · Part 0715 min read

    Server Actions and Forms

    How 'use server' functions become Server Actions in Next.js 16, from action IDs and encrypted closures in the compiler, through the client dispatch queue and the POST request, to the origin check, body limit and single-roundtrip re-render in action-handler.ts, plus forms with useActionState, useFormStatus, useOptimistic and next/form.