I am learning to properly use MVVM, Dagger2 and Firebase on Android using java. I was wondering what would be the best way to do the following:
- I need to download a list of data from Firebase once
- Use the data in a couple of fragments in one activity.
In order to not repeat the procedure of downloading the data from Firebase when creating every new fragment (or activity). Thank you.