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
Fragment 내에서 LiveData를 Fragment LifecycleOwner에 연결하고 있다.
이 Lifecycle은 다음 화면으로 이동할 때 해제되지 않아, 화면을 되돌아올 때 LiveData가 중첩 호출되고 있음.
Fragment의 ViewLifecycleOwner로 교체 필요함.
Fragment 내에서 LiveData를 Fragment LifecycleOwner에 연결하고 있다.
이 Lifecycle은 다음 화면으로 이동할 때 해제되지 않아, 화면을 되돌아올 때 LiveData가 중첩 호출되고 있음.
Fragment의 ViewLifecycleOwner로 교체 필요함.
LifecycleOwner - onDestroy()에서 해제
ViewLifecycleOwner - onDestroyView()에서 해제
Links
Step 2 — Set the lifecycle owner for the LiveData 부분
UserProfileFragment 부분
1. Leaking LiveData observers in Fragments 부분
Android Architecture Components Sample Issues:
The text was updated successfully, but these errors were encountered: