1 min readDec 18, 2018
안녕하세요.
메모리 저장이 필요한 정보는 앱레벨에서 Singleton 객체로 저장하고
onCreate-onDestroy 에 대한 처리는 RxLifecycle 를 이용해서 ViewModel 에서만 다 처리하고 있습니다.
RxLifecycle 로 dispose 를 알려주기 위해 별도로 RxActivity 같은 기본 클래스 하나 만들어서 ViewModel 에 전달합니다.
안녕하세요.
메모리 저장이 필요한 정보는 앱레벨에서 Singleton 객체로 저장하고
onCreate-onDestroy 에 대한 처리는 RxLifecycle 를 이용해서 ViewModel 에서만 다 처리하고 있습니다.
RxLifecycle 로 dispose 를 알려주기 위해 별도로 RxActivity 같은 기본 클래스 하나 만들어서 ViewModel 에 전달합니다.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app