We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aae1a2 commit 36c1485Copy full SHA for 36c1485
src/content/docs/useform/handlesubmit.mdx
@@ -38,6 +38,10 @@ This function will receive the form data if form validation is successful.
38
// await fetch()
39
} catch (e) {
40
// handle your error
41
+ setError("service", {
42
+ type: "custom",
43
+ message: "something went wrong",
44
+ })
45
}
46
47
src/data/api.tsx
@@ -967,6 +967,10 @@ handleSubmit(async (data) => await fetchAPI(data))`}
967
968
969
970
971
972
973
974
975
};
976
0 commit comments