You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am observing an issue with synchronous access between a delete and listen.
take this code for example:
await docRef.delete();
CollectionReference mRef = await cRef.collection("CollectionOfPrevDoc");
/* listen for changes of all docs */
StreamSubscription sub = await mRef.stream.listen((event) {
// the deleted doc (docRef), would get called back here, 10% of the time,
// even though it was deleted using a synchronous call.
});
Would someone please advise why this would happen and how to fix it?
The text was updated successfully, but these errors were encountered:
tpham3783
changed the title
issue with delete() follow by listen()
issue with delete() followed by listen()
Mar 25, 2022
Hi,
I am observing an issue with synchronous access between a delete and listen.
take this code for example:
Would someone please advise why this would happen and how to fix it?
The text was updated successfully, but these errors were encountered: