sforkowany z mirror/soapbox
Merge branch 'rename-unsafe-lifecycles' into 'develop'
Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps See merge request soapbox-pub/soapbox!2013theme-editor-hsl
commit
5f08091856
|
@ -45,7 +45,7 @@ class Bundle extends React.PureComponent<BundleProps, BundleState> {
|
||||||
this.load(this.props);
|
this.load(this.props);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps: BundleProps) {
|
UNSAFE_componentWillReceiveProps(nextProps: BundleProps) {
|
||||||
if (nextProps.fetchComponent !== this.props.fetchComponent) {
|
if (nextProps.fetchComponent !== this.props.fetchComponent) {
|
||||||
this.load(nextProps);
|
this.load(nextProps);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue