Skip to content

Instantly share code, notes, and snippets.

@AndreiCalazans
Created August 25, 2017 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreiCalazans/0e8150a60e50a72407837518cd875b21 to your computer and use it in GitHub Desktop.
Save AndreiCalazans/0e8150a60e50a72407837518cd875b21 to your computer and use it in GitHub Desktop.
load more paginate
_loadMore() {
if (!this.props.relay.hasMore()) {
console.log('Nothing more to load');
return
} else if (this.props.relay.isLoading()) {
console.log('Request is already pending');
return
}
this.props.relay.loadMore(ITEMS_PER_PAGE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment