0
0
Fork 0

Enable ESLint react/no-deprecated (#24471)

This commit is contained in:
Nick Schonning 2023-05-10 03:05:32 -04:00 committed by GitHub
parent 2d5e257938
commit b878e3d8df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 32 additions and 33 deletions

View file

@ -31,13 +31,13 @@ class Favourites extends ImmutablePureComponent {
intl: PropTypes.object.isRequired,
};
componentWillMount () {
UNSAFE_componentWillMount () {
if (!this.props.accountIds) {
this.props.dispatch(fetchFavourites(this.props.params.statusId));
}
}
componentWillReceiveProps (nextProps) {
UNSAFE_componentWillReceiveProps (nextProps) {
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
this.props.dispatch(fetchFavourites(nextProps.params.statusId));
}