Lucien Guimaraes
03/09/2021, 12:16 PM@HiltViewModel
annotation. How would you achieve it only with Dagger ?Colton Idle
03/09/2021, 4:25 PMLucien Guimaraes
03/09/2021, 4:52 PMallan.conda
03/10/2021, 7:20 AMAhmed Ibrahim
03/10/2021, 9:11 AMLucien Guimaraes
03/11/2021, 2:36 PMAhmed Ibrahim
03/11/2021, 3:21 PM@Inject
? or can you?
If you can, I think this solution might help you.
The key is to inject a Provider
to your own ViewModel, and wrap it around a ViewModelProvider.Factory
https://kotlinlang.slack.com/archives/C5FT9Q36G/p1603961693063400?thread_ts=1603860503.061400&cid=C5FT9Q36GLucien Guimaraes
03/11/2021, 3:43 PM