Fix follower/following lists resetting on back-navigation in web UI (#11986)
Fix #11452lolsob-rspec
parent
ae03161ad9
commit
aadf3981fa
|
@ -27,7 +27,9 @@ class Favourites extends ImmutablePureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchFavourites(this.props.params.statusId));
|
if (!this.props.accountIds) {
|
||||||
|
this.props.dispatch(fetchFavourites(this.props.params.statusId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
|
|
@ -40,8 +40,10 @@ class Followers extends ImmutablePureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
if (!this.props.accountIds) {
|
||||||
this.props.dispatch(fetchFollowers(this.props.params.accountId));
|
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
||||||
|
this.props.dispatch(fetchFollowers(this.props.params.accountId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
|
|
@ -40,8 +40,10 @@ class Following extends ImmutablePureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
if (!this.props.accountIds) {
|
||||||
this.props.dispatch(fetchFollowing(this.props.params.accountId));
|
this.props.dispatch(fetchAccount(this.props.params.accountId));
|
||||||
|
this.props.dispatch(fetchFollowing(this.props.params.accountId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps (nextProps) {
|
componentWillReceiveProps (nextProps) {
|
||||||
|
|
|
@ -27,7 +27,9 @@ class Reblogs extends ImmutablePureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillMount () {
|
componentWillMount () {
|
||||||
this.props.dispatch(fetchReblogs(this.props.params.statusId));
|
if (!this.props.accountIds) {
|
||||||
|
this.props.dispatch(fetchReblogs(this.props.params.statusId));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps(nextProps) {
|
componentWillReceiveProps(nextProps) {
|
||||||
|
|
Loading…
Reference in New Issue