Created
August 25, 2017 11:18
-
-
Save AndreiCalazans/0e8150a60e50a72407837518cd875b21 to your computer and use it in GitHub Desktop.
load more paginate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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