
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.
Nov 11, 20266 min read0 reactions2 comments