Vigyata.AI
Is this your channel?

Next.js 16 Fixed Data Fetching (For Real This Time)

4.2K views· 162 likes· 25:12· Oct 27, 2025

🛍️ Products Mentioned (6)

Learn how Next.js 16 unlocks real speed with Cache Components, the use cache directive, cache life, cache tags, and revalidateTag. I demo Partial Pre-Rendering (PPR Next.js) with server components, Suspense streaming, and dynamic vs static patterns in an ecommerce demo using a dog list example, product list skeleton, Core Web Vitals, CLS skeletons, streaming UI, fetch caching, logging fetches full URL, next.config.js cacheComponents, incremental static regeneration, and tag based invalidation. Next.js 16 Cheatsheet: https://dub.sh/nextjs-cheatsheet Build 7 Production Ready Next.js apps: https://dub.sh/nextjs-fullstack-course Tool I use to integrate purchase power parity https://dub.sh/paritykit What to watch next: https://youtu.be/8K33AlmvqNQ?si=2KexUZEHt8nmvx0w https://youtu.be/ml2UiJ69gg8?si=Vls7bR8zSQkCmJPA ⏰ Chapters 00:00 - Next.js 16 Caching Intro 01:11 - Initial Demo: No Caching 02:27 - Enabling Cache Components 03:27 - The 'use cache' Directive 04:48 - Partial Pre-rendering Explained 06:23 - Mixing Static & Dynamic 08:31 - Improving UX with Skeletons 11:28 - Cache.life for Revalidation 17:09 - Revalidate Tag for Purging 21:10 - Caching Entire Components 22:01 - Custom Cache Profiles 24:22 - Conclusion & Summary 🔗 RESOURCES: 💌 Frontend Newsletter: Frontend Snacks 🍿 https://dub.sh/frontend-snacks If you liked this video, you will also love my newsletter Frontend Snacks. You will learn a new topic each week with cool visuals and snippets, the latest frontend news and behind-the-scenes exclusive updates that I don't share anywhere else. ✨ FREE Goodies: https://kulkarniankita.com/goodies ☎️ Book a 1:1 coaching session with me Opened a few coaching calls, grab them before they are gone: https://bit.ly/30mins-coaching-with-ankita 🐤 Find me here Twitter: https://twitter.com/kulkarniankita9/ LinkedIn: https://www.linkedin.com/in/kulkarniankita/

About This Video

I was at Next.js Conf in person, and honestly this is one of the biggest shifts we’ve seen in years: Next.js 16 finally makes data fetching and caching feel coherent. In this video I walk you through Cache Components and the new "use cache" directive, and I show why the old story (getStaticProps/getServerSideProps → fetch caching → disabled caching → Server Components complexity) got confusing fast. With Cache Components, Next.js expects you to explicitly mark what should be cached, and once you opt in (cacheComponents: true), you’re basically stepping into Partial Pre-Rendering (PPR) by default. I demo everything in an ecommerce-style route: a Dog List that hits multiple APIs and a Product List that you might want dynamic. You’ll see how I move "use cache" from the page to specific functions/components to mix static + dynamic in one route, and how Suspense streaming gives you a fast static shell while dynamic sections stream in. I also show why a plain “Loading…” fallback can hurt Core Web Vitals (CLS), and how a proper skeleton fixes that. Then I go deeper into real production patterns: cache.life for time-based revalidation (very ISR-like), cache tags for grouping cached entries, and revalidateTag for on-demand purging when data changes—without redeploying. Finally, I show how to configure custom cache profiles in next.config.js so you can standardize caching across your app instead of guessing per endpoint.

Frequently Asked Questions

🎬 More from Ankita Kulkarni