diff --git a/docs/tutorial.md b/docs/tutorial.md index d23415bb..40d60122 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -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 }); }, }); diff --git a/docs/upgrading-v1.md b/docs/upgrading-v1.md index 89ccfbdf..6193c64d 100644 --- a/docs/upgrading-v1.md +++ b/docs/upgrading-v1.md @@ -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