🍿 3 New Flavours of Caching You Didn’t Know Existed in Next.js 16


Hey Reader,

I had the incredible opportunity to speak at the official Next.js Conf!. It’s been 2.5 years since I went full-time as a Tech Educator, and this moment truly feels like a milestone.

In my talk, I share how I built a custom course platform using Next.js (the same one that powers Modern Full Stack Next.js Course) along with the lessons and challenges I faced along the way.

If you'd like, you can watch the talk here!

Weekly Snack: Caching Patterns for Dynamic Components in Next.js 🍿

Next.js 16 just dropped and it completely changed how we fetch data with Cache Components.

The new "use cache" directive can be used at the top of your pages, components, or functions to cache data automatically like we covered here.

But here’s the catch 👀, you can’t use "use cache"everywhere.

And that’s why it comes in three flavours:

use cache: allows you to mark a route, React component, or a function as cacheable
use cache: private: allows you to use runtime APIs like cookies, headers, or search params and cache them
use cache: remote: enables caching of shared data in dynamic contexts

Today, let’s walk through how we can cache a dynamic function like getRecommendations() which depends on cookies 🍪 and see which caching directive makes sense here.

(I’ll cover “use cache:remote” next week!)

🌀 PS: I tried something new this time - added animated GIFs to visualize caching in action! Do you like them? Click below and tell me what you think 👇

🔥 Love it!

😐 No

🎁 Want to level up your Next.js skills the fun way?

Check out the Next.js Hot Tips Course - a free mini course with 10 quick lessons you can complete in just 5 minutes a day.

You’ll learn caching, routing, security, Server Actions, and performance tips all through bite-sized, visual lessons.

Bonus: You’ll also get free access to my interactive Next.js Course Platform + a downloadable guide with all 10 tips.

this magical button will automatically
enrol you in the course!

🚀 Latest Frontend News

Next.js 16 is out and it’s a game-changer:

  • Cache Components - new data fetching model
  • Turbopack is now the default
  • File System Caching for faster dev
  • Adapters API (alpha) for deploying Next.js anywhere

🎁 Download a Free Next.js 16 Cheatsheet

Everyone’s joking about the new "use cache" directive but Vercel wrote an amazing post on it eexplaining why it exists and the design tradeoffs they explored (like "use workflow").

"use workflow" a new directive that can suspend, resume, and maintain state with ease.

A simple but useful playground for React

Nuqs - a State manager for your URL crossed 1M downloads 🎉

SolidJS crossed 1 million downloads a week! 🎉🚀

ArcRegex is a drop in replacement for new RegExp() with types

Shadcn published the Registry Directory: a list of code registries you can browse and pull code and components from.

We now have Bun runtime on Vercel Functions


What do you think of today's Newsletter? Simply click on one of the links below.

🔥 Love it!

😐 It’s okay

👎 Not good



All past newsletters
can be found here.

You can email me at me@kulkarniankita.com to advertise/sponsor the newsletter.

For those curious, I write all my emails using Convertkit.

Ankita Kulkarni

Join 9200+ subscribers reading by weekly personalized Newsletter that helps developers level up their skills through weekly Frontend and Leadership Snacks. You get a deep dive into a Tech topic, Actionable tips to excel in your career and a toolbox!

Read more from Ankita Kulkarni
React 19.2 Activity

Hey Reader, I’ve been diving deep into React 19.2 and Next.js 16 Beta this week, and honestly, it’s such a solid update. I have started to incorporate so many of the features in my Next.js Custom Course Platform and have seen massive improvements. But before we jump into this week’s snack, let’s hear it from our sponsor. 👇 But before that, let's hear it from our Sponsor. PRESENTED BY CODERABBIT AI Most AI test tools just throw random assertions at your code and call it “coverage.” But they...

useEffectEvent

Hey Reader, This week was huge for web dev 🚀. React 19.2 just landed with fixes for some of the most annoying bugs, Sonnet 4.5 dropped with major AI upgrades, and the ecosystem feels like it’s moving faster than ever. I’ve rounded up the highlights (and why they matter) along with this week’s Snack for you below 👇 But before that, let's hear it from our Sponsor. PRESENTED BY CODERABBIT AI Most AI code reviewers feel shallow, they look at syntax, patterns, maybe a guideline or two, but they...

use-cache

Hey Reader, I’ve got some fun news to share 🎉 I’m beyond excited to share that I’ll be speaking at the official Next.js Conf 💖. I’m one of the featured speakers (!!) and would love for you to join me. My talk is called:“Build. Scale. Teach: Architecting and Scaling a Production-Ready Modern Course Platform with Next.js” Make sure to sign up here and come hang out during my sessions 🚀 And... I finally made the move to Italy 🇮🇹. Back in 2019 I almost moved to Europe, but the world had other...