MENU

Fun & Interesting

Error Handling in Server Actions Next.js (Incl. Toasts!)

ByteGrad 32,783 2 years ago
Video Not Working? Fix It Now

πŸ‘‰ NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs Hi, I'm Wesley. I'm a brand ambassador for Kinde (paid sponsorship). πŸ‘‰ Add authentication to your app FAST: https://bit.ly/3QOe1Bh πŸ‘‰ NEW React & Next.js Course: https://bytegrad.com/courses/professional-react-nextjs πŸ‘‰ Professional JavaScript Course: https://bytegrad.com/courses/professional-javascript πŸ‘‰ Professional CSS Course: https://bytegrad.com/courses/professional-css πŸ‘‰ Discord: all my courses have a private Discord where I actively participate πŸ”” Email newsletter (BIG update soon): https://email.bytegrad.com ⏱️ Timestamps: 0:00 Server Action example 1:10 Try Catch 1:58 Client Action 3:22 Refactor to client component 4:44 Show error to user 5:30 Toasts (react-hot-toast) 7:01 Errors with useState 7:45 Get error message #webdevelopment #programming #coding . . TOP resource to LEARN AI for Developers - https://datacamp.pxf.io/RGyxrR (paid sponsorship & ByteGrad Sp. z o.o. gets commission)

Comment