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] Convert NodeForm component to hooks #3599

Merged
merged 4 commits into from
Aug 27, 2019

Conversation

jaytula
Copy link
Contributor

@jaytula jaytula commented Aug 25, 2019

Convert NodeForm component to hooks


handleClick = event => {
const handleClick = event => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please wrap the event handlers with useCallback


handleSubmit = () => {
const handleSubmit = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to not wrap this one inside a useCallback too ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question, it looked a bit non-trivial than the other two and I wasn't sure if it would subtly break anything if I wrapped it the wrong way. I'll give it a try.

@djhi djhi merged commit 6456961 into marmelab:next Aug 27, 2019
@djhi djhi added this to the 3.0.0 milestone Aug 27, 2019
@jaytula jaytula deleted the usestyles-nodeform branch August 28, 2019 15:11
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.

None yet

2 participants