From 862e62501f37c8ee15521c0acca7d4d9ce9c9833 Mon Sep 17 00:00:00 2001 From: Tony Coconate Date: Fri, 10 Jan 2020 12:03:49 -0600 Subject: [PATCH] Added UNSAFE_componentWillReceiveProps to surpress warnings --- lib/components.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/components.js b/lib/components.js index 1cb5b5ec..00186eaa 100644 --- a/lib/components.js +++ b/lib/components.js @@ -81,7 +81,7 @@ class Component extends React.Component { return should; } - componentWillReceiveProps(props) { + UNSAFE_componentWillReceiveProps(props) { if (props.type !== this.props.type) { this.typeInfo = getTypeInfo(props.type); } @@ -592,7 +592,7 @@ export class List extends Component { this.state.keys = this.state.value.map(() => props.ctx.uidGenerator.next()); } - componentWillReceiveProps(props) { + UNSAFE_componentWillReceiveProps(props) { if (props.type !== this.props.type) { this.typeInfo = getTypeInfo(props.type); }