Home > Net >  update subscription without updating the firestore real time
update subscription without updating the firestore real time

Time:10-18

I subscribe to an angular firestore collection from my ionic app using valueChanges function of AngularFirestoreCollection. but I don't need to get my data updated in real time. I only need the data which was present at the time of subscription. Is there a way to get this done?

CodePudding user response:

You should use take(1) or first() rxjs operator.

  • Related