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

robnik

06/03/2021, 9:31 PM
I know that ViewModels can see navigation params by declaring a constructor that takes SavedStateHandle. But what's the right way to the ViewModel to see which nav "stack" it's in? I'm trying to make a ViewModel behave differently depending on which bottom nav stack it's in.