React: Rename deprecated UNSAFE_componentWillReceiveProps (#18526)

This commit is contained in:
Ryan McKinley
2019-08-13 01:08:33 -07:00
committed by Torkel Ödegaard
parent 4b3440325e
commit 3ccc10f82c
6 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ export class Aggregations extends React.Component<Props, State> {
this.setAggOptions(this.props);
}
componentWillReceiveProps(nextProps: Props) {
UNSAFE_componentWillReceiveProps(nextProps: Props) {
this.setAggOptions(nextProps);
}