<Firebase Firestore - how to listen to metadata ch...
# stackoverflow
u
Firebase Firestore - how to listen to metadata changes for all documents in collection I have text views that listen to the number of documents in multiple sub-document collections. Main Collection --Doc 1 ----Sub Collection ------Doc 1a ------Doc 1b --Doc 2 ----Sub Collection ------Doc 2a ------Doc 2b ------Doc 2c so, listening to the changes I get; text1= 2, text2=3 In the app I perform a batch write to upload documents into the sub collection and then the listener handles changing the number of docs in collection. As soon as I commit the batch, the listener is fired and...