docs: add updateTag example to cacheTag page (#94508)
### What?
Adds an `updateTag` example to the `cacheTag` API reference page.
### Why?
The `cacheTag` docs only showed `revalidateTag` for cache invalidation.
For forms and user-triggered mutations (the dominant use case for
`cacheTag`), `updateTag` is the recommended API because it provides
read-your-own-writes semantics. DX agent friction logs showed agents
defaulting to `revalidateTag` and hitting the deprecated single-arg
error before discovering `updateTag` via web search.
### How?
Added a second example block after the existing `revalidateTag` one,
showing `updateTag('my-data')` in a Server Function.
Co-authored-by:
Joseph Chamochumbi <joseph.chamochumbi@vercel.com>
Showing
Please
register
or
sign in
to comment