Skip to content

Commit

Permalink
docs: type of action arguments in Handling different request methods …
Browse files Browse the repository at this point in the history
…example (remix-run#12491)

* docs: use ActionArgs type for action in example

* CLA
  • Loading branch information
aarbi authored Dec 7, 2024
1 parent 9819f96 commit a6353f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- 0xEddie
- aarbi
- abdallah-nour
- abeadam
- abhi-kr-2100
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/resource-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function loader(_: Route.LoaderArgs) {
return Response.json({ message: "I handle GET" });
}

export function action(_: Route.LoaderArgs) {
export function action(_: Route.ActionArgs) {
return Response.json({
message: "I handle everything else",
});
Expand Down

0 comments on commit a6353f8

Please sign in to comment.