Skip to content

Commit

Permalink
Fix a typo in action docs (#9282)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmRo045 committed Sep 17, 2022
1 parent bd3b9a4 commit 3466b8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions contributors.yml
@@ -1,3 +1,4 @@
- AmRo045
- abhi-kr-2100
- Ajayff4
- alany411
Expand Down
4 changes: 2 additions & 2 deletions docs/route/action.md
Expand Up @@ -5,7 +5,7 @@ new: true

# `action`

Route actions are the "writes" to route [loader][loader] "reads". They provide a way for apps to perform data mutations with simple HTML and HTTP semantics while React Router abstracts away the complexity of asynchronous UI and revalidation. This gives you the simple mental model of HTML + HTTP (where the browser handles the asynchrony and revalidation) with the behavior and and UX capabilities of modern SPAs.
Route actions are the "writes" to route [loader][loader] "reads". They provide a way for apps to perform data mutations with simple HTML and HTTP semantics while React Router abstracts away the complexity of asynchronous UI and revalidation. This gives you the simple mental model of HTML + HTTP (where the browser handles the asynchrony and revalidation) with the behavior and UX capabilities of modern SPAs.

<docs-error>This feature only works if using a data router like [`createBrowserRouter`][createbrowserrouter]</docs-error>

Expand Down Expand Up @@ -50,7 +50,7 @@ Route params are parsed from [dynamic segments][dynamicsegments] and passed to y
<Route
path="/projects/:projectId/delete"
action={({ params }) => {
return fakeDeleteProject(params.teamId);
return fakeDeleteProject(params.projectId);
}}
/>
```
Expand Down

0 comments on commit 3466b8e

Please sign in to comment.