Interesting to see this video from yesterday reall...
# confetti
j
Interesting to see this video from yesterday really doubling down on message that ViewModels are still very much needed

https://www.youtube.com/watch?v=V-s4z7B_Gnc

"The ViewModel API is the only supported way to make large and arbitrary objects survive configuration changes on Android"
re "supported", maybe you lose your warranty or something if you use alternative approach 😃
b
in a way I'm glad, it means thousands of projects and millions of lines of code don't have to be rewritten once again 😛
j
what would we do if we weren't always rewriting our apps 😃
b
hahaha 😄 true story
that feeling when opening an Android project that hasn't been maintained for 2 years... "oh boy, I guess I'll just rewrite from scratch then"
j
def does feel like that sometimes 😃
m
"The ViewModel API is the only supported way to make large and arbitrary objects survive configuration changes on Android"
Well.. SQLiteNormalizedCache would like a word about this
But yea, maybe the "key" thing here is "supported"
y
"supported" is a load bearing adjective in that sentence
r
I quickly tried to work without ViewModels on Android, I miserably failed. Some libraries authors are trying to dissociate from Android’s ViewModels, like Voyager, as you need to create custom scopes based on a Android lifecycle stuff, that’s not that simple.
y
I think that's the point. It's not that you want to solve this yourself. But if you want a library to solve it, that library can either extend the quirky viewmodel abstraction to non android. Or it can use some non viewmodel abstraction including on android.