Hey i have problem with delay from firebase and responding/loading data. Data loads like 3-4seconds but this colection will have the same amount of data all time - like 20 items to load.
firestorePlacesCollection = this.firestore.collection('items'); //, ref=>ref.where("serverName","==", )
//READ
items$ = this.firestorePlacesCollection.snapshotChanges().pipe(
map((actions) => {
console.log(actions);
return actions.map((p) => {
const item = p.payload.doc;
const id = item.id;
const data = item.data();
return { id, ...(data as {}) } as ShopItem;
});
})
);