I got array with objects from API and then I use:

```
   componentDidMount(){
        this.props.getAllPosts()
        this.props.getAllComments()
    }

```

Then I put data to my Redux but when I want to change this array (for instance add new object), I need to refresh the page, because it doesn't work asynchronous...

So I solved to use `ComponentDidUpdate` but it renders every second hundreds times, What i need to do?