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 using FireStore to save users data. Each user in my Flutter app has a stream that listens to the user's document. I am running FireStore emulator and noticed that a lot of the time after the user document is updated, document is read twice or more. I have attached an image from the FireStore emulator that shows that. Is there a reason why I am getting multiple reads after a single update. I am not doing any read to the user document outside the stream.
I am using Flutter mobile app for watching the user document. The print statement in this code prints only one read. But if I am reading the user document only in the stream, then how do I end up with 2 or more reads in the emulator?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am using FireStore to save users data. Each user in my Flutter app has a stream that listens to the user's document. I am running FireStore emulator and noticed that a lot of the time after the user document is updated, document is read twice or more. I have attached an image from the FireStore emulator that shows that. Is there a reason why I am getting multiple reads after a single update. I am not doing any read to the user document outside the stream.
I am using Flutter mobile app for watching the user document. The print statement in this code prints only one read. But if I am reading the user document only in the stream, then how do I end up with 2 or more reads in the emulator?
Beta Was this translation helpful? Give feedback.
All reactions