refactor: prefix lifecycle methods with UNSAFE_

Refs #7341
This commit is contained in:
Vladimir Gorej
2021-08-12 08:57:56 +02:00
parent a9285c5aa1
commit 8c79e2a375
18 changed files with 80 additions and 30528 deletions

View File

@@ -181,7 +181,7 @@ export class Select extends React.Component {
onChange && onChange(value)
}
componentWillReceiveProps(nextProps) {
UNSAFE_componentWillReceiveProps(nextProps) {
// TODO: this puts us in a weird area btwn un/controlled selection... review
if(nextProps.value !== this.props.value) {
this.setState({ value: nextProps.value })