score:0

The problem is that you set the state before the promise is resolved. Change the code in the following way:

  GetCoffeeList() {
  coffeeCollection.get().then((querySnapshot) => {
      const cups = []
      querySnapshot.forEach(function (doc) {
              cups.push({ name: doc.id})
      });
      console.log('Updating state')
      console.log(cups)
      this.setState({ coffeeList: cups })
      console.log('End GetCoffeeList')
  })
}

Related Query

More Query from same tag