Replies: 1 comment
-
Firestore actually just added the ability to do something similar - though I do not think it fits your exact usage pattern as it is targeted at data that all users would need at startup - "Bundles" https://firebase.google.com/docs/firestore/bundles Which is just to say, the strategy certainly seems sound, and for certain use cases Firestore even has a new specific API for it (though we do not support it yet in react-native-firebase...) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I am testing my app on offline mode. And, sometimes not all data is cached when device turns offline. I know that It's normal.. As only data, which has been previously fetched from the server, is available when app turns offline. I am using a model where I fetch data on componentDidMount. For example, I fetch the list of Tasks only if user navigates to the screen listing the tasks.
Now I am thinking if preloading all data from firestore on app start up would be a good practice. Or maybe somebody can propose a better solution.
Beta Was this translation helpful? Give feedback.
All reactions