How can wait for an array of promises to finish executing, to then store the values returned from each promise in a state array?

前端 未结 0 1715
青春惊慌失措
青春惊慌失措 2021-01-04 02:03
const promises = this.state.selectedFile.map(picture => {
          const ref = Firebase.getStorageRef(`/${picture.name}`);
          return ref
            .put(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题