Uploaded December 2023 | Updated November 2026, 1 day ago
This video will look at form submissions, pending state, and error handling in forms using server actions, useFormState, and useFormStatus hooks in NextJs 14.
👉🏼 The Ultimate NextJs 14 Course
→ hamedbahram.io/courses/nextjs
👉🏼 Project source code (Github)
→ github.com/HamedBahram/next-server-actions
👉🏼 The ultimate guide to server actions
→ youtu.be/sdKFEo6978U
Chapters
0:00 Intro
2:00 Project setup
2:56 useFormState hook
7:00 Defining a server action
10:30 Adding the useFormState hook
13:20 useFormStatus hook
14:45 Pending state
15:45 Recap
This video will look at form submissions, pending state, and error handling in forms using server actions, useFormState, and useFormStatus hooks in NextJs 14.
👉🏼 The Ultimate NextJs 14 Course
→ hamedbahram.io/courses/nextjs
👉🏼 Project source code (Github)
→ github.com/HamedBahram/next-server-actions
👉🏼 The ultimate guide to server actions
→ youtu.be/sdKFEo6978U
Chapters
0:00 Intro
2:00 Project setup
2:56 useFormState hook
7:00 Defining a server action
10:30 Adding the useFormState hook
13:20 useFormStatus hook
14:45 Pending state
15:45 Recap










