Best approach to get User data with MVVM?
I am developing an application with MVVM architecture and I would like to know what is the best way to get the user data. I am using Firestore to store the user data, which is in a single document. This data is used in different screens, and in each of them I need to access different fields. Therefore, I find it inefficient to make a query in each ViewModel to get the information that each screen needs.
In the domain layer I have an interface with the methods that are then implemented in the data layer to perform the necessary operations on the user data.
My goal is to reduce the number of requests to Firestore, while maintaining the MVVM architecture and making everything as efficient as possible. I would like to know what is the recommended approach to get the user data efficiently without having to make multiple requests to Firestore.