MVVM-8: The state of the app should be defined in the Models only, whereas Views and ViewModels should be stateless


Description

Instead of emitting a stream for each feature of the model, emit the whole model. This results in up-to-date models.

Example

We created a simple MVVM example.

When we display all the notes. We display all the features of note of each note encapsulated in a LiveData object. This stream will emit every time a change happens in this object.

Check this page to view the complete repository.