Skip to content

Commit c56d64c

Browse files
authored
remove unused codes from docs/start/tutorial.md (#9340)
1 parent 174897b commit c56d64c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
- pcattori
8686
- petersendidit
8787
- promet99
88+
- pyitphyoaung
8889
- RobHannay
8990
- rtmann
9091
- ryanflorence

docs/start/tutorial.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -754,11 +754,6 @@ Nothing we haven't seen before, feel free to copy/paste:
754754

755755
```jsx filename=src/routes/edit.jsx
756756
import { Form, useLoaderData } from "react-router-dom";
757-
import { getContact } from "../contacts";
758-
759-
export function loader({ params }) {
760-
return getContact(params.contactId);
761-
}
762757

763758
export default function EditContact() {
764759
const contact = useLoaderData();
@@ -869,7 +864,7 @@ import {
869864
useLoaderData,
870865
redirect,
871866
} from "react-router-dom";
872-
import { getContact, updateContact } from "../contacts";
867+
import { updateContact } from "../contacts";
873868

874869
export async function action({ request, params }) {
875870
const formData = await request.formData();

0 commit comments

Comments
 (0)