Why I Don't Use Next.js Server Actions to Fetch Client-Side Data

Published: 02 April 2024
on channel: Dave Gray
27,710
970

Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this Next.js tutorial, I share why I don't use Next.js Server Actions to fetch client-side data. We'll look at how you can fetch data in a client component with a Next.js server action and alternative options, too.

💖 Support me on Patreon ➜   / davegray  

⭐ Become a full-stack web dev with Zero To Mastery Courses:
Complete Next.js Developer: https://bit.ly/CompNextJSDev
Advanced React: https://bit.ly/AdvReactDev
Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

🚩 Subscribe ➜ https://bit.ly/3nGHmNn

📬 Course Updates ➜ https://courses.davegray.codes/

❓ Questions - Please post them to my Discord ➜   / discord  

☕ Buy Me A Coffee ➜ https://www.buymeacoffee.com/davegray

🔗 Source Code Example: https://github.com/gitdagray/nextjs-d...

🔗 My Next.js Videos:    • Next.js Tutorials for Beginners  

👇 Follow Me On Social Media:
GitHub: https://github.com/gitdagray
Twitter:   / yesdavidgray  
LinkedIn:   / davidagray  

Why I Don't Use Next.js Server Actions to Fetch Client-Side Data

(00:00) Intro
(00:10) Welcome
(00:34) Discussion
(01:02) Example App
(04:52) Request & Response Details
(06:03) Final Thoughts

📚 Tutorial References:
🔗 Next.js docs "Server Actions & Mutations": https://nextjs.org/docs/app/building-...
🔗 MDN Cache-Control: https://developer.mozilla.org/en-US/d...

Was this tutorial about fetching data with Next.js Server Actions helpful? If so, please share. Let me know your thoughts in the comments.

#nextjs #server #actions


On this page of the site you can watch the video online Why I Don't Use Next.js Server Actions to Fetch Client-Side Data with a duration of hours minute second in good quality, which was uploaded by the user Dave Gray 02 April 2024, share the link with friends and acquaintances, this video has already been watched 27,710 times on youtube and it was liked by 970 viewers. Enjoy your viewing!