Skip to content

Commit 607a6ff

Browse files
evanpurkhiserryan953
authored andcommitted
ref(js): Remove UNSAFE_componentWillReceiveProps from group/pluginActions (#39217)
1 parent f222f75 commit 607a6ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/app/components/group/pluginActions.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ class PluginActions extends Component<Props, State> {
4646
this.loadPlugin(this.props.plugin);
4747
}
4848

49-
UNSAFE_componentWillReceiveProps(nextProps: Props) {
50-
if (this.props.plugin.id !== nextProps.plugin.id) {
51-
this.loadPlugin(nextProps.plugin);
49+
componentDidUpdate(prevProps: Props) {
50+
if (this.props.plugin.id !== prevProps.plugin.id) {
51+
this.loadPlugin(this.props.plugin);
5252
}
5353
}
5454

0 commit comments

Comments
 (0)