You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caution: A ViewModel usually shouldn't reference a view, Lifecycle, or any class that may hold a reference to the activity context. Because the ViewModel lifecycle is larger than the UI's, holding a lifecycle-related API in the ViewModel could cause memory leaks.
Is it supposed should be refactoring that related code?
The text was updated successfully, but these errors were encountered:
I just notice
lifeCycleOwner
passed to viewModel function.socialite/app/src/main/java/com/google/android/samples/socialite/ui/camera/CameraViewModel.kt
Lines 142 to 148 in 67d823a
But in the ViewModel documentation, that gives a caution that situation.
https://developer.android.com/topic/libraries/architecture/viewmodel#implement-viewmodel
Is it supposed should be refactoring that related code?
The text was updated successfully, but these errors were encountered: