You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/useform/form.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ All props are optional
40
40
|`render`| <TypeText>`Function`</TypeText> | Render prop function suitable for headless component. | <CodeAreawithOutCopyrawData="<Form render={({ submit }) => <View/>} />" /> |
41
41
|`onSubmit`| <TypeText>`Function`</TypeText> | Function invoked after successful validation. | <CodeAreawithOutCopyrawData="<Form onSubmit={({ data }) => mutation(data)} />"/> |
42
42
|`onSuccess`| <TypeText>`Function`</TypeText> | Function called after successful request to the server. | <CodeAreawithOutCopyrawData="<Form onSuccess={({ response }) => {}} />" /> |
43
-
|`onError`| <TypeText>`Function`</TypeText> | Function called after failed request to the server.<br/><br/>`setError` function will be called to update errors state. | <CodeAreawithOutCopyrawData="<Form onError={({ response }) => {}} />" /> |
43
+
|`onError`| <TypeText>`Function`</TypeText> | Function called after failed request to the server.<br/><br/>`setError` function will be called to update errors state. `root.server` will be used as error key. | <CodeAreawithOutCopyrawData="<Form onError={({ response }) => {}} />" /> |
0 commit comments