@pulyaevskiy had some additional plans for the Firestore plugin on flutter/plugins#258
I've been trying to nail down this weird behavior with deleting items and it seems to be that this is an issue with underlying platform SDKs... but I'm not sure.
In short: deleting a document (while subscribed to a Query matching this document) results in following sequence of snapshot events with DocumentChanges:
DocumentChangeType.removed with hasPendingWrites: false and isFromCache: false - OK
DocumentChangeType.added with hasPendingWrites: false and isFromCache: true - ???
DocumentChangeType.removed with hasPendingWrites: false and isFromCache: false - ???
Tested with AnimatedList and Dismissible items: deleted item appears in the list for a second and disappears again.
Wondering if anyone knows what am I doing wrong here?
I will be pushing some more changes this week in regards to SnapshotMetadata and adding some more tests.
@pulyaevskiy had some additional plans for the Firestore plugin on flutter/plugins#258