Join Slack
Powered by
Why on earth use AAC ViewModel? Any profit?
# android-architecture
m
miha-x64
10/24/2018, 10:38 AM
Why on earth use AAC ViewModel? Any profit?
🧌 1
u
ubu
10/24/2018, 12:32 PM
@miha-x64
, Surviving configuration changes? LifecycleObserver coupled with LiveData?
m
miha-x64
10/24/2018, 1:24 PM
Retained fragments and nonConfigurationInstance survive config changes, too.
s
Sam
10/24/2018, 2:40 PM
Internally, ViewModel uses Fragment's setRetainInstance
https://developer.android.com/reference/android/support/v4/app/Fragment#setretaininstance
Sam
10/24/2018, 2:41 PM
It is just an abstraction
12
Views
Open in Slack
Previous
Next