I use it to easily make variables survive config c...
# android-architecture
t
I use it to easily make variables survive config changes, but not in the intended way. I have a delegated property that looks up the variable in a map in an AAC viewmodel. That way I just have to write
val a by retained { 3 }
and it works. A big advantage is that my actual view models/presenters don't have to extend the stupid aac view model class which makes everything more flexible