jean
01/13/2022, 1:06 PMhiltViewModel()
supports @Assisted
constructor attributes now? Or does one still need to use a factory with @AssistedFactory
?FunkyMuse
01/13/2022, 1:38 PMjean
01/13/2022, 1:40 PMFunkyMuse
01/13/2022, 1:58 PMjean
01/13/2022, 2:54 PMval viewModel by viewModel(
factory = MyViewModel.provideFactory(...),
)
How do I get an instance of AbstractSavedStateViewModelFactory
from a composable function? Since I cannot do `
@Inject
lateinit var plantDetailViewModelFactory: PlantDetailViewModelFactory
like from an activity or a component?FunkyMuse
01/13/2022, 3:22 PMjean
01/13/2022, 3:36 PMhiltViewModel()
and navigation arguments are directly passed to the handle. That’s really nice but a bit confusing to understand 🙂Colton Idle
01/13/2022, 6:51 PMrkeazor
01/22/2022, 11:07 PM