🍿 Cache Expensive Runtime API Calls


Hey Reader,

I’ve been heads-down the last few months, building something special 🤫.

It’s for every developer who’s ever felt like Next.js changes faster than they can keep up. Different caching rules. New folders. New ways to fetch data.

If that sounds familiar… this one’s for you.

Next week, I’m dropping something big, something that’ll help you finally understand how all the new pieces in Next.js 16 fit together.

No hype, no fluff - just the clarity you’ve been looking for.

Make sure you keep an eye on your inbox, you’ll get early access before anyone else 😉.

🍿 Weekly Snack: Cache Expensive Runtime API calls

Just a reminder, "use-cache" is a Next.js 16 feature lets you mark a component, function or a Page as cacheable.

If your component becomes dynamic because you called connection(), cookies(), or headers()… regular "use cache" won't work i.e. you won't be able to cache your API call even though it is expensive.

You need to use "use cache: remote" instead when you are caching in a Dynamic Context.

Now, There is more to caching though in Next.js.

There are 3 flavours of caching.

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 (just covered)

You can read what "use cache: private" does here and "use cache" does here.

🚀 Latest Frontend News

How I Built a Custom Course Platform on Next.js (the same one that powers Modern Full Stack Next.js Course) along with the lessons and challenges I faced along the way.

TanStack DB 0.5 is here - Your component's query IS the API call. No custom endpoints. No GraphQL resolvers. Just write your query and DB figures out exactly what to fetch.

From Error to Fix: AI-Powered Debugging with Sentry and GitHub, a great deep dive (I use Sentry on my course platform) by Cody De Arkland.

How do you structure your React State? A great underrated docs page.

Free 250+ Open Source SVG Icons that are high quality, check it out here

Upgraded the Next.js Course Platform to provide a Better, Faster, More Engaging Path to Mastering Next.js, watch here

react native.directory is a great reference for all popular React Native libraries

Write React code in your developer panel with JSX Tooling

--

If you’ve published a blog post or shipped something, feel free to reply to this email and it comes straight to my inbox. I’m always looking for great community work to consider featuring.


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
You’re Suspending the Wrong Component

Hey Reader, There are thousands of you going through Modern Full Stack Next.js Course so wanted to be grateful here for your support. Just as a thank you, there is something big dropping for you. It will only last 24 hours ⏰ so keep an eye out for my email next week. Let's dive in! PRESENTED BY CLERK Instead of your coding agent guessing how auth works, you can now install specialized Clerk knowledge directly into it. Introducing Clerk Skills One simple command $ npx skills add clerk/skills...

Next.js bundle analyzer

Hey Reader, This week, we're putting your Next.js app under the microscope, what's slowing it down? This along with the latest news, can AI really debug complex React/Next.js bugs? How OpenClaw and Anthropic are enabling AI collaboration, 3 New Coding Models dropped and more. Let's dive in! 🍿 Our Weekly Snack: What's Really Slowing Down Your Next.js App? Have you ever wondered why your Next.js app feels sluggish or takes forever to load? 🐌 The new experimental Bundle Analyzer in Next.js 16.1...

git worktree

Hey Reader, A lot of you have been asking me how I’m able to stay so productive and get a lot of work done so I finally broke down my exact workflow and setup in a short video. 🍿 Our Weekly Snack: Run Multi Agents stress free with Claude Code Git work trees let you check out multiple branches at the same time each in its own folder all backed by the same repo. Instead of one working directory and constant branch switching, you get parallel workspaces. Each work tree has its own isolated...