How to fetch data and handle caching in Next.js 14

Опубликовано: 28 Февраль 2025
на канале: Mux
628
4

Let's talk about efficient data fetching in Next.js 14! We'll cover server-side and client-side fetching examples to help you master caching strategies. Learn when to prioritize caching, how to revalidate data with webhooks, and implement client components for client-side fetching. Discover techniques to display live viewer counts for streaming and explore bonus tips and tricks. Uplevel your next.js skillz with a few (bad) dad jokes.

Chapters:

00:00 - Kicking off the livestream
00:50 - Diving into next.js and sdk updates
01:58 - Exploring the challenges of next.js 14
03:21 - Building MuxTV with next.js server components
05:22 - Mastering data fetching and caching in next.js
30:19 - Tackling client-side data fetching challenges
32:04 - Exploring viewer count updates in real-time
33:02 - Implementing viewer count on client side
50:56 - Optimizing performance with server-side techniques
56:36 - Enhancing user experience with animated viewer counts

Build video into your website with Mux at https://mux.com

Dave on Twix: https://x.com/davekiss
Dar on Twix: https://x.com/darius_cepulis