Danny Preussler
1 min readJun 26, 2017

--

Nice post too! I hope developers don’t start putting large amounts of data into the ViewModels. But if so, then probably right now they have that data in the Activity themselves so they ViewModel does make it worse. It’s just a bad application design.
But great that you stretch the danger of inconsistency! Indeed its not only lost state but you end up in real fucked up situation. Hannes Dorfmann just posted a nice blog where he also mentioned that the EditText might save it’s text but the ViewModel is not even aware of it… this will lead to really weird bugs indeed

--

--

Danny Preussler
Danny Preussler

Written by Danny Preussler

Android @ Soundcloud, Google Developer Expert, Goth, Geek, writing about the daily crazy things in developer life with #Android and #Kotlin

No responses yet