From 6ae660571637b4a7d3f25b4bf09f2510b78f41c9 Mon Sep 17 00:00:00 2001 From: Bennett Dams Date: Tue, 29 Oct 2024 13:57:38 +0100 Subject: [PATCH] (docs) `use cache`: Add text code formatting (#71999) This PR adds missing code formatting for `revalidateTag` to the docs of `use cache`. Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com> --- docs/02-app/02-api-reference/01-directives/use-cache.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/02-app/02-api-reference/01-directives/use-cache.mdx b/docs/02-app/02-api-reference/01-directives/use-cache.mdx index b6c7894292dbf..1e6d8d2427efb 100644 --- a/docs/02-app/02-api-reference/01-directives/use-cache.mdx +++ b/docs/02-app/02-api-reference/01-directives/use-cache.mdx @@ -284,7 +284,7 @@ export async function getData() { } ``` -You can then purge the cache on-demand using revalidateTag in another function, for examples, a [route handler](/docs/app/building-your-application/routing/route-handlers) or [Server Action](/docs/app/building-your-application/data-fetching/server-actions-and-mutations): +You can then purge the cache on-demand using `revalidateTag` in another function, for examples, a [route handler](/docs/app/building-your-application/routing/route-handlers) or [Server Action](/docs/app/building-your-application/data-fetching/server-actions-and-mutations): ```tsx filename="app/submit.ts" highlight={6,7} 'use server' @@ -297,7 +297,7 @@ export default async function submit() { } ``` -See the [revalidateTag](/docs/app/api-reference/functions/revalidateTag) docs for more information on purging cached data on-demand. +See the [`revalidateTag`](/docs/app/api-reference/functions/revalidateTag) docs for more information on purging cached data on-demand. ## Examples