0

On a super high level from historical perspective, MVVM is Microsoft 2008 improvement to Smalltalk-80 MVC idea from 1988(first publication). It brings view-model as a cache layer between the view and model. Lumi provides an excellent summery about this.

Many PRs latter Android Jetpack brings ViewModel, which is an API not an architectural pattern. I want to better understand how models and view-models are orchestrated in the Android Jetpack world.

Ilya Gazman
  • 27,805
  • 19
  • 119
  • 190
  • 1
    Well pretty much the same, it acts like a temporary cache. You have your models which represent the data your views need to show. Since on Android views are destroyed upon configuration change so is the data. In order to preserve the data you keep it in viewmodels which actually survive configuration changes. – J.Grbo May 27 '21 at 18:13

0 Answers0