feat(antd): form server-side validation
After the onMutationError callback is triggered, useForm will automatically set the thrown errors to the corresponding form fields.
From know, when the dataProvider throws an HttpError with an errors field, the form will display the errors in the appropriate fields. With this feature users can handle server-side validation errors out-of-the-box.
-Ant Design example is added
Test plan (required)
WIP
Self Check before Merge
Please check all items below before review.
- [x] Corresponding issues are created/updated or not needed
- [x] Docs are updated/provided or not needed
- [x] Examples are updated/provided or not needed
- [x] TypeScript definitions are updated/provided or not needed
- [x] Tests are updated/provided or not needed
- [x] Changesets are provided or not needed
https://refinedev.atlassian.net/jira/software/c/projects/REF/boards/1?modal=detail&selectedIssue=REF-74
đĻ Changeset detected
Latest commit: 005eb8472d8e54d2e5e92fe9708b11b014c9fd62
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
âī¸ Nx Cloud Report
CI is running/has finished running commands for commit 005eb8472d8e54d2e5e92fe9708b11b014c9fd62. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
đ See all runs for this branch
Sent with đ from NxCloud.
Deploy Preview for refine-doc-live-previews failed.
| Name | Link |
|---|---|
| Latest commit | 005eb8472d8e54d2e5e92fe9708b11b014c9fd62 |
| Latest deploy log | https://app.netlify.com/sites/refine-doc-live-previews/deploys/64ac17fca78497000859d075 |
Passing run #9417 âī¸
Details:
| Merge 47d318c08bdc887669eccb9e859479b008c2756a into dbae61f580edf52fd2cc9676bbed... | |||
| Project: refine | Commit: aed914b91b âšī¸ |
||
| Status: Passed | Duration: 36:51 đĄ | ||
| Started: Jun 23, 2023 5:42 PM | Ended: Jun 23, 2023 6:19 PM | ||
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.