mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-12 16:06:17 +02:00
unmounted check in TimelinePanel
This commit is contained in:
parent
db1e1c7df0
commit
559f60d43e
@ -174,6 +174,8 @@ var TimelinePanel = React.createClass({
|
||||
this.setState({[statekey]: true});
|
||||
|
||||
return this._timelineWindow.paginate(dir, PAGINATE_SIZE).then((r) => {
|
||||
if (this.unmounted) { return; }
|
||||
|
||||
debuglog("TimelinePanel: paginate complete backwards:"+backwards+"; success:"+r);
|
||||
this.setState({[statekey]: false});
|
||||
this._onTimelineUpdated(r);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user