How can we pass initial parameters in jetpack comp...
# compose
k
How can we pass initial parameters in jetpack compose ViewModel using Hilt
Copy code
@HiltViewModel
class AboutVM @Inject constructor(
    private val profile: Profile,
) : ViewModel() {
...
}
How
profile
can be passed ? while creating viewmodel like below
Copy code
val vm = hiltViewModel<AboutVM>()
g
a
Saved state instance with compose navigation
Assisted inject is the old way