Jetpack Compose Navigation Question :vertical_traf...
# compose-android
j
Jetpack Compose Navigation Question 🚦 We have a nav graph with arguments (an id which we use on multiple child screens). Now we want to directly navigate to a child screen (not the start destination). This works without any problem, but how can we populate the saved state argument of the whole graph in this case, so that the id is accessible as always?
We aren’t using type safe navigation right now. Here is some code that illustrates the status quo.
We found a workaround for the time being, not pretty but it works. First navigate to the graph with the id as argument and directly after navigate to the child screen and pop the start destination of the graph inclusive.