Published On Apr 2, 2024
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