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); }