Jossi Wolf
1 min readJul 18, 2020

--

Thanks for the feedback!

First off, doing DB operations in some mapper in a ViewModel is definitely not something I would recommend - but I have still seen lots of people do this.

You are right, the thread switching part is not as clearly explained as it should be - I will try to edit the post with a better sample!

--

--

Jossi Wolf
Jossi Wolf

Written by Jossi Wolf

Software Engineer @Google working on Jetpack Compose. I like Kotlin, Animations and Rabbits! speakerdeck.com/jossiwolf

No responses yet