DEV Community

Discussion on: Create a never offline web app!

Collapse
 
paco_ita profile image
Francesco Leardini

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."

Collapse
 
mukherjee96 profile image
Aritra Mukherjee

Thanks a lot! This is exactly what I was looking for. 🙂