Skip to content

Commit b6b876f

Browse files
authored
Add clarification on unique dynamic segments (#12707)
1 parent 7b04181 commit b6b876f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/start/framework/routing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,8 @@ async function loader({ params }: LoaderArgs) {
263263
}
264264
```
265265

266+
You should ensure that all dynamic segments in a given path are unique. Otherwise, as the `params` object is populated - latter dynamic segment values will override earlier values.
267+
266268
## Optional Segments
267269

268270
You can make a route segment optional by adding a `?` to the end of the segment.

docs/start/library/routing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ export default function Team() {
168168
}
169169
```
170170

171+
You should ensure that all dynamic segments in a given path are unique. Otherwise, as the `params` object is populated - latter dynamic segment values will override earlier values.
172+
171173
## Optional Segments
172174

173175
You can make a route segment optional by adding a `?` to the end of the segment.

0 commit comments

Comments
 (0)