Using Firestore Web API v9, suppose I have a collection listener and a document listener for a document in that collection. An update for that document comes through.
Two questions:
- Am I charged for two reads?
- Is this an acceptable practice in general? Does the SDK send the data back twice, or send it once and dispatch an update twice?
Example:
collectionSnapshots(collection(firestore, 'people')).subscribe(...);
docSnapshots(doc(firestore, 'people/john')).subscribe(...);