zoha131
03/05/2021, 4:10 PMzhuinden
03/05/2021, 4:14 PM=
viewModel( hiltviewmodelfactory)
zoha131
03/05/2021, 4:28 PMhiltviewmodelfactory
zhuinden
03/05/2021, 4:29 PMdagger.hilt.android.lifecycle.HiltViewModelFactory
zoha131
03/05/2021, 4:30 PMviewModel(HiltViewModelFactory(AmbientContext.current, backStackEntry))
from release note. But unable to find any ``HiltViewModelFactory` that takes backStackEntry
as constructor parameter.Ian Lake
03/05/2021, 4:31 PMHiltViewModelFactory
- don't import the internal
oneandroidx.hilt.navigation
one that you want: https://developer.android.com/reference/kotlin/androidx/hilt/navigation/package-summary#hiltviewmodelfactoryzoha131
03/05/2021, 4:39 PM