Cloud Firestore: Can I unsubscribe from all snapshot listeners at once?



Can I unsubscribe from all Firestore snapshot listeners at once?

e.g. when the user logs out.


The SDKs for both Realtime Database and Cloud Firestore don’t provide a way to automatically unsubscribe from active listeners. Your client code should be doing that explicitly.

Answered By – Doug Stevenson

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More