Getting a local cache with a huge delay
I am trying to force firebase
to use data from the cache
if the Internet connection is lost when working with my android application
on React Native
.
The idea is that when the user opens the screen, he sees a list of groups. The groups are stored in the Firebase Сloud
.
If there is an Internet connection, then there are no problems. However, if I turn off the Internet on the emulator
, then working with the cache becomes absolutely strange.