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.
SubscribeRelated
revalidateTagrevalidatePathcacheTag