~/talk

Revolutionize Your Backend: Mastering Server Actions with Next.js and React

Talkat Commit Your Code 2026 · 2026-09-02..09-04· [react, nodejs]
slides:none on file

Next.js server actions convert simple JS functions into backend endpoints, demonstrated by an addUser function that writes to a Postgres database and initially ships with three concrete bugs: saving raw form values instead of Zod-validated ones, relying on String() which breaks fallback checks, and throwing errors instead of returning them. The demo uses the use server directive, Zod for schemas, revalidatePath/updateTag/revalidateTag for cache updates, and useActionState/startTransition for pending UI. After fixes and adding authorization checks the flow works; agents.md helps keep generated actions up to date.

AI-written summary · about

  1. 0:00Server actions in Next.js
  2. 3:21How server actions work
  3. 5:50Pitfalls in server actions
  4. 12:39Live demo of server actions
  5. 14:50Debugging server action bugs
  6. 18:28Security in server actions
  7. 21:36AI agents and server actions
  8. 23:45Key takeaways
  9. 24:49Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.