Tomáš Hůla
Tomáš Hůla
Hi, I just wanted to add my own observations experiencing the same problem. I have a DestinationsNavHost nested into RootNavHost using it's NavGraph. When I use `hiltViewModel()` in the destination,...
Aha, sorry in that case. Anyway do you know how would I accomplish, so that the first time I navigate to the destination a new ViewModel instance is created and...
Using the following: ```kotlin contentNavController.navigate(item.destination.route) { launchSingleTop = true } ``` unfortunately doesn't work. (nothing changes, new instance still gets created)
That is almost it, but not fully. I will rather ask somewhere else, since I already clutter this thread with unrelated things. Thanks for help 😀
For me, using this java egg: https://github.com/parkervcp/eggs/tree/master/generic/java has the same problem. It just doesn't get killed by itself, but is stopping forever.
Why not just use the @asarkar's solution?
Yes, but unfortunately no sooner than 7/15, I am currently without pc for some time.
Here I have the example code. I hope that it's okay that it is not a repository and is written in Kotlin 🙂 Just run it, place a boat on...
Sure, I'll let you know tomorrow