mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 10:53:39 +00:00
Replace unsafe lifecycle methods in bundle.jsx
This commit is contained in:
parent
3cabdd7dcf
commit
2edbfb0dd8
|
|
@ -33,13 +33,13 @@ class Bundle extends PureComponent {
|
||||||
forceRender: false,
|
forceRender: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
UNSAFE_componentWillMount() {
|
componentDidMount() {
|
||||||
this.load(this.props);
|
this.load(this.props);
|
||||||
}
|
}
|
||||||
|
|
||||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
componentDidUpdate(prevProps) {
|
||||||
if (nextProps.fetchComponent !== this.props.fetchComponent) {
|
if (prevProps.fetchComponent !== this.props.fetchComponent) {
|
||||||
this.load(nextProps);
|
this.load(this.props);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user