Unsubscribing to firebase firestore's updates listener
what is the best way to unsubscribe to firestore.collection().onSnapshot() on logout?
Note: I am using multiple stores and I am using a listener to updates in every store, but I want to unsubscribe to all listeners on logout.
waiting for your help guys, thank you for your time
kindly inform me of any needed details.