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:
committed by
Facebook Github Bot
parent
c95ecf6b3e
commit
8df91d198f
@@ -212,7 +212,7 @@ export default class extends PureComponent<Props, State> {
|
||||
|
||||
treeContainer: any = null;
|
||||
|
||||
componentWillReceiveProps(props: Props) {
|
||||
UNSAFE_componentWillReceiveProps(props: Props) {
|
||||
if (this.props.data === props.data) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user