Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps

This commit is contained in:
Alex Gleason
2022-12-17 11:01:43 -06:00
parent af4e8765fd
commit 63ee2ba2ba

View File

@ -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);
}