Unverified Commit 8f3eb011 authored by walker flynn's avatar walker flynn Committed by GitHub

Update revalidatePath.mdx to fix confusing wording of arguments section. (#56099)

This part of the documentation was confusing and did not match the below examples.
parent 293de45a
...@@ -16,7 +16,7 @@ description: API Reference for the revalidatePath function. ...@@ -16,7 +16,7 @@ description: API Reference for the revalidatePath function.
revalidatePath(path: string, type?: 'page' | 'layout'): void; revalidatePath(path: string, type?: 'page' | 'layout'): void;
``` ```
- `path`: A string representing the filesystem path associated with the data you want to revalidate. This is the literal route segment (for example, `/product/123`) not the path on the filesystem `/product/[slug]/page`. Must be less than 1024 characters. - `path`: Either a string representing the filesystem path associated with the data you want to revalidate (for example, `/product/[slug]/page`), or the literal route segment (for example, `/product/123`). Must be less than 1024 characters.
- `type`: (optional) `'page'` or `'layout'` string to change the type of path to revalidate. - `type`: (optional) `'page'` or `'layout'` string to change the type of path to revalidate.
## Returns ## Returns
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment