-
Notifications
You must be signed in to change notification settings - Fork 91
Rewrite mappers FormTemplates to be components. #352
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
ed46784
to
820c44b
Compare
Codecov Report
@@ Coverage Diff @@
## v2 #352 +/- ##
==========================================
+ Coverage 86.46% 86.56% +0.09%
==========================================
Files 127 128 +1
Lines 2025 2039 +14
Branches 649 649
==========================================
+ Hits 1751 1765 +14
Misses 274 274
Continue to review full report at Codecov.
|
<FormTemplate formFields={renderForm(schema.fields)} schema={schema} /> | ||
</RendererContext.Provider> | ||
)} | ||
render={({ handleSubmit, pristine, valid, form: { reset, mutators, getState, submit, ...form }, ...state }) => { |
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.
Unnecessary return block
820c44b
to
0b85610
Compare
@@ -10,9 +10,35 @@ import defaultSchemaValidator from '../parsers/default-schema-validator'; | |||
import SchemaErrorComponent from '../form-renderer/schema-error-component'; | |||
import defaultValidatorMapper from '../validators/validator-mapper'; | |||
|
|||
const useComponentSpy = (onStateUpdate) => { |
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.
What about to move this to hooks folder?
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.
I could. If you reaaaaaally want me to
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.
Yes, please :D
0b85610
to
7b45b75
Compare
@@ -1185,7 +1185,7 @@ describe('renderForm function', () => { | |||
}); | |||
}); | |||
|
|||
it('should use actionMapper', () => { | |||
it.only('should use actionMapper', () => { |
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.
only ?
7b45b75
to
cbe0612
Compare
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.
KA-:boom:
🎉 This PR is included in version 1.31.0 🎉 The release is available on Demo can be found here! |
🎉 This PR is included in version 2.0.0 🎉 The release is available on Demo can be found here! |
Changes