-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Fix <FormDataConsumer>
usage with Field children
#8445
Conversation
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 approve the changes.
I would just suggest changing the PR title to something more explicit. For instance something like:
Fix <SimpleFormIterator>
example on how to work with Fields, and remove confusing warning in <FormDataConsumer>
FormDataConsumer
warning <SimpleFormIterator>
example on how to work with Fields, and remove confusing warning in <FormDataConsumer>
<Labeled label="Url"> | ||
<TextField source={getSource('url')} /> | ||
<TextField source="url" record={scopedFormData} /> |
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.
Are you sure about the removal of getSource
?
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, this solution was tested in the context of this PR: #8359 (have a look at the comments)
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.
Does it mean we don't need getSource
anymore?
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.
we still need it for inputs
<SimpleFormIterator>
example on how to work with Fields, and remove confusing warning in <FormDataConsumer>
<FormDataConsumer>
usage Field children
<FormDataConsumer>
usage Field children<FormDataConsumer>
usage with Field children
Fixes #8427