This is about offline persistance mode in Firestore DB. When you go offline and send a read request to Firestore, it attempts to send a few remote read requests, even when they fail, before falling back to the local indexedDB. This means that when you go offline, the read call is actually very slow because of Firestore continuously trying to send remote calls. Though subsequent offline reads seem quick.
My question is why does firebase not fallback to indexedDB immediately by detecting `navigator.onLine` value?