mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-25 14:59:20 +00:00
remove getSnapshotBeforeUpdate from status
This commit is contained in:
parent
266a3ef111
commit
c86b6eedc2
1 changed files with 0 additions and 8 deletions
|
@ -108,14 +108,6 @@ class Status extends ImmutablePureComponent {
|
||||||
this.didShowCard = !this.props.muted && !this.props.hidden && this.props.status && this.props.status.get('card');
|
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) {
|
static getDerivedStateFromProps(nextProps, prevState) {
|
||||||
if (nextProps.status && nextProps.status.get('id') !== prevState.statusId) {
|
if (nextProps.status && nextProps.status.get('id') !== prevState.statusId) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Add table
Reference in a new issue