1 min readMay 24, 2020
The viewModelFactory comes from Dagger. If you have Dagger, then for no-args you can use `@Inject` over the VM constructor and inject a `Provider<MyViewModel>` that is invoked from `object: ViewModelProvider.Factory`, or for runtime-args you do what's outlined in the article.