)
> Finds the actual start destination of the graph, handling cases where the graph's starting destination is itself a NavGraph
Can I understand "actual start destination", as "first non-NavGraph destination"?
Thomas
02/01/2024, 9:16 AM
I have created a test to demonstrate the difference between
startDestinationId
and
findStartDestination().id
Here is a screenshot, I hope this helps people in the future
Thomas
02/01/2024, 9:24 AM
I still don't understand the exact behavior when using
popUpTo
with
graph.id
kdoc on `NavGraph`:
> A NavGraph serves as a 'virtual' destination: while the NavGraph itself will not appear on the back stack, navigating to the NavGraph will cause the [starting destination]_*[getStartDestination]*_ to be added to the back stack.
I suppose
popUpTo
with
graph.id
pops the entire back stack, and then adds the start destination to the back stack?
And what happens with