Do not load if not needed
This commit is contained in:
parent
8787e72444
commit
c043adf031
|
@ -15,7 +15,9 @@ class BlocksContainer extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.props.fetchBlocks();
|
if (!this.props.blocks.data) {
|
||||||
|
this.props.fetchBlocks();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loadMore() {
|
loadMore() {
|
||||||
|
|
Loading…
Reference in New Issue