catalinghita8 / android-compose-mvvm-foodies

Android sample app following best practices: Kotlin, Compose, Coroutines and Flow, Hilt, JetPack Navigation, ViewModel, MVVM, Retrofit, Coil
476 stars 89 forks source link

Migrate from assisted injection to `SavedStateHandle` #10

Closed catalinghita8 closed 3 years ago

catalinghita8 commented 3 years ago

In order to avoid assisted injection that brings an overhead of complexity in injecting the ViewModels, we use SavedStateHandle to extract runtime navigation arguments.

JustJerem commented 3 years ago

Look Good ! 🏄‍♂️