Andrei Beriukhov
1 min readJul 13, 2020

--

Hi Seb. Thanks for your question.

The main accent of this article was to show the View plus basic Store layers of the application without making it too difficult by other specificities.

Of course, using GlobalScope is a bad practice in Coroutines. The particular scope of the Store should be chosen according to the lifecycle of the feature. I suppose that for features in this sample use of ViewModel’s scope is unnecessary.

There is also not mentioned the fact that activity by itself can be destroyed and we should restore the state of the UI after recreating.

I am planning to improve this application to cover most of this questions.

--

--

Andrei Beriukhov
Andrei Beriukhov

No responses yet