Don't always paginate when mounting a ScrollPanel

Calling just checkFill on DidMount did not initially set the
scrollTop which meant that one back pagination request is always
performed regardless. This meant we would end up rending the
first batch of events, then paginating and re-rendering again
after the pagination got another batch, causing unnecessary render
churn.
pull/21833/head
David Baker 2017-09-08 15:41:19 +01:00
parent 7dbd54ad25
commit 78a2e49705
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ module.exports = React.createClass({
},
componentDidMount: function() {
this.checkFillState();
this.checkScroll();
},
componentDidUpdate: function() {