Codemod deprecated React APIs

Summary: Performed with `react-codemod rename-unsafe-lifecycles`. I'll taskify the components next. This change means that things will still work with React 17 but only if we opt-out from "strict mode".

Reviewed By: mweststrate

Differential Revision: D18810459

fbshipit-source-id: 6954f4e7bb91dbd7fc8b839895308fc193cc4aa0
This commit is contained in:
Pascal Hartig
2019-12-04 10:11:07 -08:00
committed by Facebook Github Bot
parent c95ecf6b3e
commit 8df91d198f

View File

@@ -212,7 +212,7 @@ export default class extends PureComponent<Props, State> {
treeContainer: any = null; treeContainer: any = null;
componentWillReceiveProps(props: Props) { UNSAFE_componentWillReceiveProps(props: Props) {
if (this.props.data === props.data) { if (this.props.data === props.data) {
return; return;
} }