-
-
Notifications
You must be signed in to change notification settings - Fork 278
feat: Support FormProvider #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://rc-field-form-git-context.react-component.now.sh |
Codecov Report
@@ Coverage Diff @@
## master #4 +/- ##
==========================================
+ Coverage 16.27% 16.72% +0.44%
==========================================
Files 11 13 +2
Lines 590 616 +26
Branches 99 110 +11
==========================================
+ Hits 96 103 +7
- Misses 494 510 +16
- Partials 0 3 +3
Continue to review full report at Codecov.
|
Please feel free if current context api design should update. @afc163 |
<Form1 /> | ||
<Form2 /> | ||
</div> | ||
</FormProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rules 是不是也可以支持一下。
https://redd.gitbook.io/react-advanced-form/components/form-provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rule 我们现在是 Field level 的,不太好支持。
validateMessages
config.Preview
📸 Context Demo
Document
📖 https://github.com/react-component/field-form/blob/context/README.md#formprovider