Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mixed): renamed unsafe lifecycle methods (#3747)
* chore(mixed): renamed unsafe lifecycle methods Executed via `npx react-codemod rename-unsafe-lifecycles --parser babel` Disabled lint issues for updated lines. Closes #3741 Related to #2732 * bump react to ensure that CI will pass * disable broken UTs
- Loading branch information
1 parent
9bcc76a
commit dd66e92
Showing
11 changed files
with
61 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -391,7 +391,8 @@ export default class Dropdown extends Component { | |
return { focus: false, searchQuery: '' } | ||
} | ||
|
||
componentWillMount() { | ||
// eslint-disable-next-line camelcase | ||
UNSAFE_componentWillMount() { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
layershifter
Member
|
||
debug('componentWillMount()') | ||
const { open, value } = this.state | ||
|
||
|
@@ -403,8 +404,9 @@ export default class Dropdown extends Component { | |
} | ||
} | ||
|
||
componentWillReceiveProps(nextProps) { | ||
super.componentWillReceiveProps(nextProps) | ||
// eslint-disable-next-line camelcase | ||
UNSAFE_componentWillReceiveProps(nextProps) { | ||
super.UNSAFE_componentWillReceiveProps(nextProps) | ||
debug('componentWillReceiveProps()') | ||
debug('to props:', objectDiff(this.props, nextProps)) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can
componentWillMount
not be changed tocomponentDidMount
here? are there any implications of still usingcomponentWillMount
here?