Skip to content

Commit

Permalink
docs: Update parse function to parseWithZod
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerabrodi authored and edmundhung committed Feb 3, 2024
1 parent ddbb233 commit 86285b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ export default function ContactUs() {

// Run the same validation logic on client
onValidate({ formData }) {
return parse(formData, { schema });
return parseWithZod(formData, { schema });
},
});

Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ We have redesigned the submission object to simplify the setup.
```tsx
export async function action({ request }: ActionArgs) {
const formData = await request.formData();
const submission = parse(formData, { schema });
const submission = parseWithZod(formData, { schema });

/**
* The submission status could be either "success", "error" or undefined
Expand Down

0 comments on commit 86285b2

Please sign in to comment.