Skip to content

Commit

Permalink
docs: fix 10-dynamic-routes.mdx (#70126)
Browse files Browse the repository at this point in the history
params from `{}` to `{ slug: undefined }`.

Fixes #70124
  • Loading branch information
hirotomoyamada authored Sep 17, 2024
1 parent c07dbd7 commit 08f8fac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ The difference between **catch-all** and **optional catch-all** segments is that

| Route | Example URL | `params` |
| ------------------------------ | ------------- | --------------------------- |
| `app/shop/[[...slug]]/page.js` | `/shop` | `{}` |
| `app/shop/[[...slug]]/page.js` | `/shop` | `{ slug: undefined }` |
| `app/shop/[[...slug]]/page.js` | `/shop/a` | `{ slug: ['a'] }` |
| `app/shop/[[...slug]]/page.js` | `/shop/a/b` | `{ slug: ['a', 'b'] }` |
| `app/shop/[[...slug]]/page.js` | `/shop/a/b/c` | `{ slug: ['a', 'b', 'c'] }` |
Expand Down

0 comments on commit 08f8fac

Please sign in to comment.