Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps

environments/review-rename-uns-sgh8nl/deployments/1778
Alex Gleason 2022-12-17 11:01:43 -06:00
rodzic af4e8765fd
commit 63ee2ba2ba
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -45,7 +45,7 @@ class Bundle extends React.PureComponent<BundleProps, BundleState> {
this.load(this.props);
}
componentWillReceiveProps(nextProps: BundleProps) {
UNSAFE_componentWillReceiveProps(nextProps: BundleProps) {
if (nextProps.fetchComponent !== this.props.fetchComponent) {
this.load(nextProps);
}