Skip to content

Commit

Permalink
remove getSnapshotBeforeUpdate from status
Browse files Browse the repository at this point in the history
  • Loading branch information
panarom committed Dec 28, 2019
1 parent 266a3ef commit c86b6ee
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/javascript/mastodon/components/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ class Status extends ImmutablePureComponent {
this.didShowCard = !this.props.muted && !this.props.hidden && this.props.status && this.props.status.get('card');
}

getSnapshotBeforeUpdate () {
if (this.props.getScrollPosition) {
return this.props.getScrollPosition();
} else {
return null;
}
}

static getDerivedStateFromProps(nextProps, prevState) {
if (nextProps.status && nextProps.status.get('id') !== prevState.statusId) {
return {
Expand Down

0 comments on commit c86b6ee

Please sign in to comment.