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

@@ -51,7 +51,7 @@ class PopperController extends React.Component<Props, State> {
};
}
componentWillReceiveProps(nextProps: Props) {
UNSAFE_componentWillReceiveProps(nextProps: Props) {
if (nextProps.placement && nextProps.placement !== this.state.placement) {
this.setState((prevState: State) => {
return {