Is there a way to have a shared `viewmodel` betwee...
# compose
m
Is there a way to have a shared
viewmodel
between two `composable`s ? and inject them using
dagger-hilt
i
hiltViewModel
already supports passing in a navigation graph's
NavBackStackEntry
or the entry of another destination already on the back stack: https://developer.android.com/jetpack/compose/libraries#hilt-navigation