Skip to content
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

<ArrayInput> uses SourceContext instead of cloning children #9911

Conversation

adguernier
Copy link
Contributor

Problem

<ArrayInput> and <SimpleFormIterator> are still cloning their children. Besides, <SimpleFormIterator> throws an Error when used without a source prop.

Solution

Migrate both components to support the SourceContext and no longer require cloning their children.

This is a BC so this needs to be done before the v5 release.

Copy link
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused by this PR. It probably requires more tests and more comments to make the code robust and maintainable.

@adguernier adguernier added the WIP Work In Progress label Jun 10, 2024
Copy link
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we miss a story where we can see non-humanized input labels, to check that they make sense.

Copy link
Member

@fzaninotto fzaninotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting close! 🔥

@fzaninotto fzaninotto merged commit 998edc7 into next Jun 12, 2024
14 checks passed
@fzaninotto fzaninotto deleted the use-source-prefix-context-in-array-input-and-simple-form-iterator branch June 12, 2024 12:59
@fzaninotto fzaninotto added this to the 5.0.0 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants