🦸♂️
ViewModel Good PracticesThis is a example repository to demonstrate the good practices of using ViewModel
and how usage of AndroidViewModel
can make things worst in a codebase. This repository have both the implementation (good and bad).
👨💻
Implementation
- Branch
bad-implementation
: Implementation usingAndroidViewModel
. - Branch
refactor
: Implementation usingViewModel
and segregated logic.
If you are just interested in the
📱
What's this app about?
This is a simple app which demonstrates the user session management (login/logout actions).