|
|
@ -36,9 +36,11 @@ class Followers extends ImmutablePureComponent { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
componentWillMount () { |
|
|
|
componentWillMount () { |
|
|
|
|
|
|
|
if (!this.props.accountIds) { |
|
|
|
this.props.dispatch(fetchAccount(this.props.params.accountId)); |
|
|
|
this.props.dispatch(fetchAccount(this.props.params.accountId)); |
|
|
|
this.props.dispatch(fetchFollowers(this.props.params.accountId)); |
|
|
|
this.props.dispatch(fetchFollowers(this.props.params.accountId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps (nextProps) { |
|
|
|
componentWillReceiveProps (nextProps) { |
|
|
|
if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) { |
|
|
|
if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) { |
|
|
|