EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Firestore onSnapShot: can't unsubscribe #1851

Open nmandyam opened 2 years ago

nmandyam commented 2 years ago

I have an onSnapShot listener on a collection with a where clause - nothing unusual. I'm trying to stop the listener from kicking in when I move from one page to another. I do that by invoking the function that's returned when I set up the snapshot, as described in the doc. But the snapshot continued to kick in regardless, even after I invoke that function. I don't even know how I'd track down the issue. All help appreciated!