unmounted check in TimelinePanel
This commit is contained in:
parent
db1e1c7df0
commit
559f60d43e
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue