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

Remove Outdated react lifecycle components & updated the react version to 16.4.1 #227

Merged

Conversation

superhit0
Copy link
Collaborator

@superhit0 superhit0 requested a review from patw0929 July 15, 2018 13:46
@coveralls
Copy link

coveralls commented Jul 15, 2018

Coverage Status

Coverage increased (+0.05%) to 93.344% when pulling 9ae0f8a on superhit0:remove-component-will-receive-props into bb09300 on patw0929:master.

}

componentWillUpdate(nextProps, nextState) {
shouldComponentUpdate(nextProps, nextState) {
if (nextState.showDropdown) {
Copy link
Owner

Choose a reason for hiding this comment

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

Although it's work, but I'm not sure if it is an anti-pattern to put codes which is not related to component-update control. 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

componentWillUpdate is gone.

The only place left for component will update code to go is in should component update

Copy link
Owner

Choose a reason for hiding this comment

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

OK, got it. 👌

@superhit0
Copy link
Collaborator Author

Merging it !!

@superhit0 superhit0 merged commit e368560 into patw0929:master Jul 16, 2018
andrewsantarin pushed a commit to andrewsantarin/react-intl-tel-input that referenced this pull request Feb 2, 2022
…n to 16.4.1 (patw0929#227)

* Bumping React version to 16.4.1 & removing deprecated lifecycle events
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

3 participants