|
|
@ -207,7 +207,7 @@ class Status extends ImmutablePureComponent {
|
|
|
|
loadedStatusId: undefined,
|
|
|
|
loadedStatusId: undefined,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
componentWillMount () {
|
|
|
|
UNSAFE_componentWillMount () {
|
|
|
|
this.props.dispatch(fetchStatus(this.props.params.statusId));
|
|
|
|
this.props.dispatch(fetchStatus(this.props.params.statusId));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -215,7 +215,7 @@ class Status extends ImmutablePureComponent {
|
|
|
|
attachFullscreenListener(this.onFullScreenChange);
|
|
|
|
attachFullscreenListener(this.onFullScreenChange);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps (nextProps) {
|
|
|
|
UNSAFE_componentWillReceiveProps (nextProps) {
|
|
|
|
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
|
|
|
|
if (nextProps.params.statusId !== this.props.params.statusId && nextProps.params.statusId) {
|
|
|
|
this._scrolledIntoView = false;
|
|
|
|
this._scrolledIntoView = false;
|
|
|
|
this.props.dispatch(fetchStatus(nextProps.params.statusId));
|
|
|
|
this.props.dispatch(fetchStatus(nextProps.params.statusId));
|
|
|
|