[Glitch] Fix unnecessary loadMore calls when the end of a timeline has been reached
Port 240d41b3ca
to glitch flavour
This commit is contained in:
parent
48e6b2360d
commit
e5a25656e8
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export default class ScrollableList extends PureComponent {
|
|||
const { scrollTop, scrollHeight, clientHeight } = this.node;
|
||||
const offset = scrollHeight - scrollTop - clientHeight;
|
||||
|
||||
if (400 > offset && this.props.onLoadMore && !this.props.isLoading) {
|
||||
if (400 > offset && this.props.onLoadMore && this.props.hasMore && !this.props.isLoading) {
|
||||
this.props.onLoadMore();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue