Skip to content

Commit

Permalink
Update apps/documentation/src/routes/documentation/routing/defining-r…
Browse files Browse the repository at this point in the history
…outes.mdx

Co-authored-by: Marco Pasqualetti <[email protected]>
  • Loading branch information
Valerioageno and marcalexiei authored Dec 7, 2024
1 parent f785cca commit 2bad3e1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ export default function PostRootLayout({ children }) {
}
```

With such examples a `/posts/examples-post` route will be wrapper by both layouts while a
generic `/about` route will just have the first `RootLayout` as wrapper.
Referring to the two examples above consider that:
- `/posts/examples-post` → will be wrapped by both `RootLayout` and `PostRootLayout`
- `/about` → will be wrapped only by `RootLayout`

0 comments on commit 2bad3e1

Please sign in to comment.