From 8df91d198f09d984f95edf0f2a8f1a7bf7282d59 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 4 Dec 2019 10:11:07 -0800 Subject: [PATCH] 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 --- src/plugins/sections/Tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/sections/Tree.js b/src/plugins/sections/Tree.js index 9ea17e7ab..9dd7e15ee 100644 --- a/src/plugins/sections/Tree.js +++ b/src/plugins/sections/Tree.js @@ -212,7 +212,7 @@ export default class extends PureComponent { treeContainer: any = null; - componentWillReceiveProps(props: Props) { + UNSAFE_componentWillReceiveProps(props: Props) { if (this.props.data === props.data) { return; }