Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps
This commit is contained in:
parent
af4e8765fd
commit
63ee2ba2ba
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue