https://kotlinlang.org logo
#compose
Title
# compose
k

knthmn

02/09/2021, 7:32 AM
I have a
ViewModel
that is injected by Hilt with the new
@Assisted
annotation. How do I create the
ViewModel
inside a composable?
a

allan.conda

02/09/2021, 7:34 AM
viewModel()
I didn’t have to write anything special with Hilt
oh you meant @Assisted other than savedStateHandle…
3 Views