Whats the recommended way of passing parameters to...
# compose-android
z
Whats the recommended way of passing parameters to my screen viewmodel? Currently i know of using koins parametersOf, and using a LaunchedEffect to call an initialize method in the viewmodel. but neither of those are very elegant i feel. is there something more proper that I should use instead?
c
passing params? i use hilt pretty much exclusively, but i think koin has something similar to inject args into a VM. Are you asking about "runtime" args? i.e. assisted inject?
f
If you mean navigation arguments, the AAC navigation will automatically populate the savedStateHandle in the viewmodel with those
1