I'm using axios to fetch some data form my API, after the first promise is resolved, I execute another one after that.
I tried something that did work, but it does not seems correct, the problem is that for the firstResolvedPromise() I don't need the return data from it, I just need the JavaScript to wait it's resolution to then execute the other promise, knowing this, the data => { } is useless code, how can I do it better? Omit the data?
firstResolvedPromise()
  .then(data => {
    secondResolvedPromisse()
      .then(data => {
        this.setState({
          someState: data,
        })
      })
  })
 
    