guys, are there any helpers to utilize NavArgs fro...
# koin
d
guys, are there any helpers to utilize NavArgs from androidx navigation lib? something similar to SavedStateHandle? pass args to viewmodel? maybe SavedStateHandle to NavArgs converter? something like this
t
You use parameters.
Copy code
private val args: STOListFragmentArgs by navArgs()
private val vm by viewModel<STOListViewModel> { parametersOf(args.accountId) }
Copy code
viewModel { (accountId: String) -> STOListViewModel(accountId, get(), get(), get()) }
d
yes! i'm doing the same. but not so convenient as SavedStateHandle usage 😉