Skip to content

Commit 42376d4

Browse files
committed
Merge branch 'main' into release-next
2 parents f6b5dae + 6120207 commit 42376d4

39 files changed

+10598
-33171
lines changed

contributors.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
- ivanjonas
7878
- jacob-ebey
7979
- JaffParker
80+
- jakkku
8081
- JakubDrozd
8182
- janpaepke
8283
- jasonpaulos
@@ -116,6 +117,7 @@
116117
- markivancho
117118
- maruffahmed
118119
- marvinruder
120+
- matt-harro
119121
- maxpou
120122
- mcansh
121123
- MenouerBetty
@@ -126,6 +128,7 @@
126128
- modex98
127129
- morleytatro
128130
- ms10596
131+
- ned-park
129132
- noisypigeon
130133
- omar-moquete
131134
- p13i
@@ -138,6 +141,7 @@
138141
- pyitphyoaung
139142
- RobHannay
140143
- rtmann
144+
- rubeonline
141145
- ryanflorence
142146
- ryanhiebert
143147
- sanketshah19
@@ -151,6 +155,7 @@
151155
- souzasmatheus
152156
- srmagura
153157
- stasundr
158+
- stmtk1
154159
- tanayv
155160
- theostavrides
156161
- thisiskartik
@@ -173,4 +178,3 @@
173178
- xavier-lc
174179
- xcsnowcity
175180
- yuleicul
176-
- jakkku

docs/components/form.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function ProjectsPage() {
5757
>
5858
<Route
5959
path=":projectId"
60-
element={<ProjectPage />}
60+
element={<ProjectsPage />}
6161
action={ProjectsPage.action}
6262
/>
6363
</Route>

docs/hooks/use-matches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The proverbial use case here is adding breadcrumbs to a parent layout that uses
5656
// here we use "crumb" and return some elements,
5757
// this is what we'll render in the breadcrumbs
5858
// for this route
59-
crumb: () => <Link to="/message">Messages</Link>,
59+
crumb: () => <Link to="/messages">Messages</Link>,
6060
}}
6161
>
6262
<Route

docs/route/route.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,24 @@ let { org, "*": splat } = params;
205205

206206
### Layout Routes
207207

208-
<docs-info>TODO: expand with example</docs-info>
209-
210208
Omitting the path makes this route a "layout route". It participates in UI nesting, but it does not add any segments to the URL.
211209

210+
```tsx
211+
<Route
212+
element={
213+
<div>
214+
<h1>Layout</h1>
215+
<Outlet />
216+
</div>
217+
}
218+
>
219+
<Route path="/" element={<h2>Home</h2>} />
220+
<Route path="/about" element={<h2>About</h2>} />
221+
</Route>
222+
```
223+
224+
In this example, `<h1>Layout</h1>` will be rendered along with each child route's `element` prop, via the layout route's [Outlet][outlet].
225+
212226
## `index`
213227

214228
Determines if the route is an index route. Index routes render into their parent's [Outlet][outlet] at their parent's URL (like a default child route).

docs/start/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ We'll create new contacts by exporting an `action` in our root route, wiring it
594594

595595
👉 **Create the action and change `<form>` to `<Form>`**
596596

597-
```jsx filename=src/routes/root.jsx lines=[5,7,9-11,22-25]
597+
```jsx filename=src/routes/root.jsx lines=[5,7,9-12,24-26]
598598
import {
599599
Outlet,
600600
Link,
@@ -1298,7 +1298,7 @@ import {
12981298
useNavigate,
12991299
} from "react-router-dom";
13001300

1301-
export default function Edit() {
1301+
export default function EditContact() {
13021302
const contact = useLoaderData();
13031303
const navigate = useNavigate();
13041304

0 commit comments

Comments
 (0)