diff --git a/docs/01-app/03-api-reference/04-functions/revalidateTag.mdx b/docs/01-app/03-api-reference/04-functions/revalidateTag.mdx index e886cc1115bca..00d646bd71462 100644 --- a/docs/01-app/03-api-reference/04-functions/revalidateTag.mdx +++ b/docs/01-app/03-api-reference/04-functions/revalidateTag.mdx @@ -26,7 +26,7 @@ The revalidation behavior depends on whether you provide the second argument: ## Parameters ```ts -revalidateTag(tag: string, profile?: string | { expire?: number }): void; +revalidateTag(tag: string, profile: string | { expire?: number }): void; ``` - `tag`: A string representing the cache tag associated with the data you want to revalidate. Must not exceed 256 characters. This value is case-sensitive. @@ -52,6 +52,8 @@ async function getData() { } ``` +> **Good to know**: The single-argument form `revalidateTag(tag)` is deprecated. It currently works if TypeScript errors are suppressed, but this behavior may be removed in a future version. Update to the two-argument signature. + ## Returns `revalidateTag` does not return a value.