Functions

updateTag

Server Action only. Expires the specified data tag so a later read waits for fresh data; use after a successful mutation. Source: https://nextjs.org/docs/app/api-reference/functions/updateTag

Formal Syntax & Structure

nextjs syntaxnextjs
updateTag(tag: string): void

Working Example

Example Snippetnextjs
import { updateTag } from "next/cache";// inside an authorized Server Action after commitupdateTag("catalog");
Next.js Reference