Firestore: No promise on get() or onSnapshot() when offline (if doc doesn't exist) #1769
Labels
help: needs-triage
Issue needs additional investigation/triaging.
Type: Stale
Issue has become stale - automatically added by Stale bot
Milestone
I'll keep it simple as the bug is easy to reproduce.
In firebase docs it says clearly:
This causes an infinite loading screen in my app if the user has no internet connection, because there's no callback whatsoever so the app doesn't know when it's done loading. At least if I get an error I can stop the loading, now i have to figure out some weird workaround. Am I missing something or is this an actual bug?
EDIT: I forgot to mention I got the same behavior with onSnapshot
Using
"react-native-firebase": "^5.1.1",
"react": "16.6.1",
"react-native": "0.57.7",
The text was updated successfully, but these errors were encountered: