coolyC
Reactiflux4y ago
1 reply
cooly

Cooly – 06-37 Jan 7

      await Promise.all(
        comments.map((item) => {
          firebase
          .firestore()
          .collection("users")
          .doc(item.user)
          .get()
          .then((snap) => {
            console.debug('a')
            }
          });
        })
      )
      console.debug('b')


how can i make 'a' print before 'b'?
Was this page helpful?