Skip to content

Commit 554373f

Browse files
authored
docs(start/tutorial): fix EditContact loaded data (#10151)
1 parent 39a15d5 commit 554373f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- Ajayff4
99
- akamfoad
1010
- alany411
11+
- alberto
1112
- alexlbr
1213
- AmRo045
1314
- amsal

docs/start/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ Nothing we haven't seen before, feel free to copy/paste:
757757
import { Form, useLoaderData } from "react-router-dom";
758758

759759
export default function EditContact() {
760-
const contact = useLoaderData();
760+
const { contact } = useLoaderData();
761761

762762
return (
763763
<Form method="post" id="contact-form">

0 commit comments

Comments
 (0)