Skip to content

Commit 4f90dc8

Browse files
committed
Merge branch 'main' into release-next
2 parents f54a09d + 226dbbd commit 4f90dc8

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![npm package][npm-badge]][npm] [![build][build-badge]][build]
22

3-
[npm-badge]: https://img.shields.io/npm/v/react-router-dom.svg?style=flat-square
3+
[npm-badge]: https://img.shields.io/npm/v/react-router-dom.svg
44
[npm]: https://www.npmjs.org/package/react-router-dom
55
[build-badge]: https://img.shields.io/github/actions/workflow/status/remix-run/react-router/test.yml?branch=dev&style=square
66
[build]: https://github.com/remix-run/react-router/actions/workflows/test.yml

contributors.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,13 @@
9797
- emzoumpo
9898
- engpetermwangi
9999
- ericschn
100+
- esadek
100101
- faergeek
101102
- FilipJirsak
102103
- focusotter
103104
- foxscotch
104105
- frontsideair
106+
- fucancode
105107
- fyzhu
106108
- fz6m
107109
- gaspard
@@ -195,6 +197,7 @@
195197
- m-dad
196198
- m-shojaei
197199
- machour
200+
- majamarijan
198201
- Manc
199202
- manzano78
200203
- marc2332
@@ -307,6 +310,7 @@
307310
- TkDodo
308311
- tkindy
309312
- tlinhart
313+
- tobias-edwards
310314
- tom-sherman
311315
- tomasr8
312316
- tony-sn

docs/start/framework/navigating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Forms with `<Form method="post" />` will also navigate to the action prop but wi
126126

127127
## redirect
128128

129-
Inside of route loaders and actions, you can `redirect` to another URL.
129+
Inside of route loaders and actions, you can return a `redirect` to another URL.
130130

131131
```tsx
132132
import { redirect } from "react-router";

docs/upgrading/component-routes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,11 @@ In general:
211211

212212
Note that your `root.tsx` file will be statically generated and served as the entry point of your app, so just that module will need to be compatible with server rendering. This is where most of your trouble will come.
213213

214-
## 6. Setup your routes
214+
## 6. Set up your routes
215215

216216
The React Router Vite plugin uses a `routes.ts` file to configure your routes. For now we'll add a simple catchall route to get things going.
217217

218-
**👉 Setup a `catchall.tsx` route**
218+
**👉 Set up a `catchall.tsx` route**
219219

220220
```shellscript nonumber
221221
touch src/routes.ts src/catchall.tsx
@@ -269,11 +269,11 @@ You will probably want to add `.react-router/` to your `.gitignore` file to avoi
269269
.react-router/
270270
```
271271

272-
You can checkout [Type Safety][type-safety] to learn how to fully setup and use autogenerated type safety for params, loader data, and more.
272+
You can check out [Type Safety][type-safety] to learn how to fully set up and use autogenerated type safety for params, loader data, and more.
273273

274274
## 8. Render your app
275275

276-
To get back to rendering your app, we'll update the "catchall" route we setup earlier that matches all URLs so that your existing `<Routes>` get a chance to render.
276+
To get back to rendering your app, we'll update the "catchall" route we set up earlier that matches all URLs so that your existing `<Routes>` get a chance to render.
277277

278278
**👉 Update the catchall route to render your app**
279279

@@ -337,7 +337,7 @@ export default function Component({ loaderData }) {
337337
}
338338
```
339339

340-
See [Type Safety][type-safety] to setup autogenerated type safety for params, loader data, and more.
340+
See [Type Safety][type-safety] to set up autogenerated type safety for params, loader data, and more.
341341

342342
The first few routes you migrate are the hardest because you often have to access various abstractions a bit differently than before (like in a loader instead of from a hook or context). But once the trickiest bits get dealt with, you get into an incremental groove.
343343

tutorials/address-book/app/data.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,9 @@ export async function deleteContact(id: string) {
311311
].forEach((contact) => {
312312
fakeContacts.create({
313313
...contact,
314-
id: `${contact.first.toLowerCase()}-${contact.last.toLocaleLowerCase()}`,
314+
id: `${contact.first
315+
.toLowerCase()
316+
.split(" ")
317+
.join("_")}-${contact.last.toLocaleLowerCase()}`,
315318
});
316319
});

0 commit comments

Comments
 (0)