mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
React: Rename deprecated UNSAFE_componentWillReceiveProps (#18526)
This commit is contained in:
committed by
Torkel Ödegaard
parent
4b3440325e
commit
3ccc10f82c
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user