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

[RFR] Migrate SelectInput to use useInput #3526

Merged
merged 4 commits into from
Aug 14, 2019
Merged

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Aug 14, 2019

No description provided.

@djhi djhi added this to the 3.0.0 milestone Aug 14, 2019
@@ -86,6 +89,16 @@ const useInput = ({
[onFocus, customOnFocus]
);

// If there is an input prop, this input has already been enhanced by final-form
if (options.input) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure of the performances implications of calling the useField from final-form at L51 but ignoring its result here. Final-form should be optimized and we don't have any other choice to comply to the hooks rules anyway

@Kmaschta Kmaschta merged commit 74ea17c into next Aug 14, 2019
@Kmaschta Kmaschta deleted the select-input-use-input branch August 14, 2019 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants