I am adding an empty document to my Firestore collection to get an unique id and then use it. But after "I was called" I get no logs. Why?
async createDocRef() {
console.log("I was called");
const x = await this.afStore.collection('feedbacks').add({})
.then(f => console.log('fulfilled'), uf => console.log('unfulfilled'))
.catch(() => console.log('error'))
.finally(() => console.log('finish'));
console.log('added');
}
But documents are created in collection after running this function