Skip to content

Commit

Permalink
Update revalidatePath.mdx to fix confusing wording of arguments secti…
Browse files Browse the repository at this point in the history
…on. (#56099)

This part of the documentation was confusing and did not match the below examples.
  • Loading branch information
walfly committed Sep 28, 2023
1 parent 293de45 commit 8f3eb01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: API Reference for the revalidatePath function.
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.

## Returns
Expand Down

0 comments on commit 8f3eb01

Please sign in to comment.