Next.js 14 Server Actions | Delete with Confirmation | MongoDB | TypeScript

Опубликовано: 04 Ноябрь 2024
на канале: Sandipan Das
1,192
24

🔥 Hire me @ - https://sandipandas.dev/hire
🔥 @Fiverr - https://sandipandas.dev/hire/fiverr
🔥 @Upwork -https://sandipandas.dev/hire/upwork

💡 WANT TO CHECK MY WORK EXAMPLES?
https://sandipandas.dev/project

📋 READ MY BLOGS:
https://sandipandas.dev/blog

💰 WANT TO SUPPORT THIS CHANNEL?
Donate here: https://paypal.me/sandipandasdev?coun...

VIEW THE FULL PLAYLIST:
   • Next JS Authentication - (NextAuth.js)  

IN THIS VIDEO:
🚀 In this video, we dive into ...
⚙️

Whether you're a developer looking to enhance user authentication or build a production-grade application, this tutorial covers you!

🔍 TOPICS COVERED:
0:00 Greetings with history
0:40 Convert the delete button to form
2:15 Define the delete function (server actions)
03:40 Warning: only plain objects can be passed to client components. Issue Fixed to pass ID only
4:40: delete post implemented with revalidatePath
6:10 Add a loader while deleting
7:20 Add confirmation while deleting
14:40 Nextjs 14 server actions vs API

By the end of this tutorial, you'll have a solid grasp of implementing the Nextjs 14 server actions. Don't forget to like, subscribe, and hit the bell icon for more insightful tutorials on web development!

👍 Let me know in the comments if you found this tutorial helpful or have any questions.

👇🏻 FOLLOW ME HERE:
Instagram:   / sandipandas.dev  
Facebook:   / sandipandas.net  
LinkedIn:   / sandipandasdev  
Twitter:   / sandipandas_net  
Github: https://github.com/sandidas

🚨 GET FAST AND BEST WEB HOSTING:
https://dronahost.com/wordpress-hosting/

🛠️ GET WORDPRESS THEMES AND PLUGINS:
Get Astra Theme: https://sandipandas.net/go/astra/
Get Divi Theme: https://sandipandas.net/go/divi
Get Generate Press/ Theme: https://sandipandas.net/go/generatepr...
Get Elementor Pro: https://sandipandas.net/go/elementor

🔴 LOOKING FOR THE CODE FROM MY BUILDS?
https://github.com/sandidas/nextjs-au...
Background Music Copyright:
Music by LiQWYD:   / liqwyd  

#NextJS #serverActions #NextAuthJS #TypeScript