Bundle: componentWillReceiveProps --> UNSAFE_componentWillReceiveProps

This commit is contained in:
Alex Gleason 2022-12-17 11:01:43 -06:00
parent af4e8765fd
commit 63ee2ba2ba
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

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