val parentViewModel = hiltNavGraphViewModel<ParentViewModel>("Parent")
but no matter what I do it imports the wrong hiltNavGraphViewModel which takes backStackEntry as a param and does not work in the end.
When I type hiltNavGraphViewModel I can see the option for the one that has a String param but even after I select it and Android Studio auto completes the code to
Copy code
hiltNavGraphViewModel(route = )
it is still the one that requires backStackEntry and route is red
i
Ian Lake
04/15/2021, 6:33 PM
The one that takes a route is an extension method on