MVVM / DDD / clean architecture: ViewModel and Domain Model (Android)
Although the question relates to Android, it is actually a fundamental question that is independent of the chosen platform. I have read a lot about MVVM, DDD and clean architecture concepts and studied many examples available on GitHub. But there is one thing I almost everytime stumbled upoun: the exposure of the domain model in the viewmodel to the view. And related to this, how and where data is prepared and processed for the view.
MVVM / DDD / clean architecture: ViewModel and Domain Model (Android)
Although the question relates to Android, it is actually a fundamental question that is independent of the chosen platform. I have read a lot about MVVM, DDD and clean architecture concepts and studied many examples available on GitHub. But there is one thing I almost everytime stumbled upoun: the exposure of the domain model in the viewmodel to the view. And related to this, how and where data is prepared and processed for the view.