Skip to content
masterclass Buddy

Next.js 16+ · Function

updateTag

updateTag expires cached data for a specific tag from a Server Action. The next request waits for fresh data, which helps users see their own writes immediately.

Last updated

Syntax

updateTag(tag: string): void;

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • revalidateTag
  • revalidatePath
  • cacheTag

Source: updateTag | Next.js. Checked 2026-11-03.