Merge branch 'rename-unsafe-lifecycles' into 'develop'

Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps

See merge request soapbox-pub/soapbox!2013
environments/review-develop-3zknud/deployments/1781
Alex Gleason 2022-12-17 17:29:56 +00:00
commit 5f08091856
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);
}