[Codemod] Rename react unsafe lifecycles (#8143)

* [Codemod] Rename react unsafe lifecycles

* Fix lint errors

* [Codemod] Rename react unsafe lifecycles

* Fix lint errors
This commit is contained in:
Erik Ritter
2019-09-03 14:13:58 -07:00
committed by Grace Guo
parent ee24539bd2
commit 436261e703
37 changed files with 437 additions and 460 deletions

View File

@@ -83,7 +83,7 @@ class AceEditorWrapper extends React.PureComponent {
this.props.actions.queryEditorSetSelectedText(this.props.queryEditor, null);
this.setAutoCompleter(this.props);
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
if (!areArraysShallowEqual(this.props.tables, nextProps.tables) ||
!areArraysShallowEqual(this.props.schemas, nextProps.schemas) ||
!areArraysShallowEqual(this.props.extendedTables, nextProps.extendedTables)) {