SeongUg Steve Jung
Dec 18, 2018 · 1 min read


메모리 저장이 필요한 정보는 앱레벨에서 Singleton 객체로 저장하고
onCreate-onDestroy 에 대한 처리는 RxLifecycle 를 이용해서 ViewModel 에서만 다 처리하고 있습니다.

RxLifecycle 로 dispose 를 알려주기 위해 별도로 RxActivity 같은 기본 클래스 하나 만들어서 ViewModel 에 전달합니다.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store