-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[createReactClass] remove createReactClass from the IntegrationTests/ReactContentSizeUpdateTest.js #21622
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.
Code analysis results:
eslint
found some issues.
|
||
UNSAFE_componentWillMount: function() { |
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.
prettier/prettier: Insert ·
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.
Nice! I only had one suggestion, but it's small enough for me to fix internally. 👌🏽
|
||
rootViewDidChangeIntrinsicSize: function(intrinsicSize) { | ||
updateViewSize = () => { |
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.
The only call-site for this method is in componentDidMount
:
componentDidMount() {
this._timeoutID = setTimeout(() => {
this.updateViewSize();
}, 1000);
},
Given the way it's called, we don't need to bind this function.
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.
RSNara has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@nd-02110114 merged commit 96bdfe3 into |
…ateTest.js (facebook#21622) Summary: Related to facebook#21581 . Removed createReactClass from the IntegrationTests/ReactContentSizeUpdateTest.js - [x] npm run prettier - [x] npm run flow-check-ios - [x] npm run flow-check-android [GENERAL] [ENHANCEMENT] [IntegrationTests/ReactContentSizeUpdateTest.js] - remove createReactClass dependency Pull Request resolved: facebook#21622 Reviewed By: TheSavior Differential Revision: D10302181 Pulled By: RSNara fbshipit-source-id: 97b955070deb7a244f335ad609f26ffc07578c01
Related to #21581 .
Removed createReactClass from the IntegrationTests/ReactContentSizeUpdateTest.js
Test Plan
Release Notes
[GENERAL] [ENHANCEMENT] [IntegrationTests/ReactContentSizeUpdateTest.js] - remove createReactClass dependency