Skip to content

Commit

Permalink
Wording update for route hierarchy discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
mankyKitty authored and ali-abrar committed Dec 14, 2021
1 parent dae2f07 commit 1f9a93f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/route/docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,12 @@ for a specific user:
```

Each of these requires a slightly different approach because the parameters appear at different
positions along the route. The main difference is in how the type of the route constructor is
defined.
positions along the route. The reason is that when we have a 'non-parameter' route segment, this
signals that there is a decision to be made as we proceed further down into the route hierarchy.

- In the case of `code/$solutionA/$solutionB/$solutionC`, we expect the types of the abstract routes to stay consistent as we go from `A` to `B` to `C`. those types can't change.

- However, in `user/$userId`, we expect that the next path segment could be "repository", or if we had implemented other routes, it could be a different structure with its own subroutes.

### In sequence

Expand Down

0 comments on commit 1f9a93f

Please sign in to comment.