Do not load if not needed

This commit is contained in:
Anthony Laibe 2018-08-02 12:49:49 +01:00
parent 30c9e14168
commit 02e436f26d

View File

@ -15,8 +15,10 @@ class BlocksContainer extends Component {
}
componentDidMount() {
if (!this.props.blocks.data) {
this.props.fetchBlocks();
}
}
loadMore() {
this.props.fetchBlocks(this.loadMoreFrom());