android-mvvm-architecture
android-mvvm-architecture copied to clipboard
Caution : Repository is Singleton
AppDataManager is a singleton. Is it recommended to keep your Repository class as Singleton?
@ashish-andev It depends on the use-case like:
- How frequently we are going to use that object?
- How much resource is needed to create the object of that class?
- What is the scope/lifetime of that object?