Shivam Sethi
03/07/2021, 11:02 PMIan Lake
03/07/2021, 11:48 PMShivam Sethi
03/07/2021, 11:54 PMIan Lake
03/08/2021, 12:02 AM@AssistedInject
for ViewModels is arguments, specifically via the SavedStateHandle
object, which is what that thread I linked to talks about. Here's the Hilt issue for more details: https://github.com/google/dagger/issues/2287SavedStateHandle
of your ViewModel
automatically, right alongside your other Hilt provided dependenciesShivam Sethi
03/08/2021, 12:07 AMString
as navigation argument so that I can retrieve that via SaveStateHandle
in viewModel
.Ian Lake
03/08/2021, 12:51 AMShivam Sethi
03/08/2021, 8:19 AM