I'm still learning Dart/Flutter so I have a conceptual question. If I run a query that returns 5 documents to me, how can I set up update listeners for each individual document so that when one is updated I don't have to re-run the query and fetch all 5 over again? Basically, I want individual updates and not group updates when only one has actually changed.
Here is my current query code that listens for updates but wastes a lot of Firestore reads.
Firestore.instance
.collection("lists")
.where("users", arrayContains: uid)
.snapshots()
.listen((data) =>
lists = Map.fromEntries(data.documents.map((DocumentSnapshot doc) {
return MapEntry(doc.documentID, TaskList.fromSnapshot(doc));
})));