mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
Do not load if not needed
This commit is contained in:
parent
8787e72444
commit
c043adf031
@ -15,8 +15,10 @@ class BlocksContainer extends Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
if (!this.props.blocks.data) {
|
||||
this.props.fetchBlocks();
|
||||
}
|
||||
}
|
||||
|
||||
loadMore() {
|
||||
this.props.fetchBlocks(this.loadMoreFrom());
|
||||
|
Loading…
x
Reference in New Issue
Block a user