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