Next.js use cache, cacheLife and cacheTag: How One View Counter Rebuilt Every Page
use cache stores a result, cacheLife decides when it goes stale, cacheTag lets you throw it out on demand. When to use each, and where TanStack Query fits.

Frontend developer · writing Bitlyst
I build web products for a living and keep running into the same questions: why does the event loop do that, when does React re-render, what is Next.js actually caching?
Bitlyst is where I write down the answers — one concept per post, with diagrams and code you can paste today. No 3,000-word intros. If you can't finish it over a coffee, it's too long.
use cache stores a result, cacheLife decides when it goes stale, cacheTag lets you throw it out on demand. When to use each, and where TanStack Query fits.

V8 labels every array by what it holds and whether it may have gaps. Labels only get more general, and holey arrays take slower paths.

'this' in JavaScript depends on how a function is called, not where it's written. Four rules and one arrow-function exception cover every case.

What should I write next?
Stuck on a concept or an interview question? Ask — the best ones become posts.
Get new posts in your inbox
One email when a new post is out: short, diagram-first explanations of JavaScript, React and Next.js. No spam, unsubscribe any time.