ViewModels: Persistence, onSaveInstanceState(), Restoring UI State and Loaders
Lyla Fujiwara
2K10

Hi Lyla Fujiwara, thank for sharing, great post.

However i have an issue and need your help. The scenario is when I implement a search screen that query directly from database. I want the search result screen updated whenever new textseach is submited or the database is changed.

How can i implement viewmodel, so that view can observe both textsearch and database?

Thanks in advance.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.