https://kotlinlang.org logo
#compose
Title
# compose
m

Marko Novakovic

02/03/2023, 3:14 PM
with
ViewModel
and
Hilt
. if I have
@Composable
with
ViewModel
parameter as
viewModel: MyViewModel = hiltViewModel()
and I create that
@Composable
as navigation destinations without passing the
ViewModel
to it, will it be scoped to correct
NavBackStackEntry
?
l

Love Mahajan

02/03/2023, 4:29 PM
yes
m

Marko Novakovic

02/03/2023, 6:16 PM
thanks
3 Views