You can use addSnapshotListener for your requirement:
"Local writes in your app will invoke snapshot listeners immediately. This is because of an important feature called "latency compensation." When you perform a write, your listeners will be notified with the new data before the data is sent to the backend."
Hi Aritra.
Have a look here: firebase.google.com/docs/firestore...
You can use
addSnapshotListener
for your requirement:"Local writes in your app will invoke snapshot listeners immediately. This is because of an important feature called "latency compensation." When you perform a write, your listeners will be notified with the new data before the data is sent to the backend."
Thanks a lot! This is exactly what I was looking for. 🙂