Open johnjeremih opened 3 years ago
Use this library https://github.com/FunnyDevs/hilt-conductor.
private val viewModel by lazy {
ViewModelProvider(
this,
viewModelFactory { ViewModel(repository) }
).get(ViewModel::class.java)
}
@hijamoya Do you have an example where you used it? Thanks
This is not an issue, but I would like to know how to implement ViewModel using conductor Controller. it doesn't extend from activity nor fragment, is there a way to do it? thanks