Hi, hope this is an OK place for questions.
Say I open the app and want to bring the user to C but want to have A and B on the back stack so that the back key etc. Think resuming an onboarding flow or entering some other complex flow mid-way where you want the user to be able to go back and change stuff as if they nav'd there naturally this session:
Welcome -> Enter Email -> Select account type -> Review terms
^ Current destination
<-- synthesised back stack
Presently navigate(A); navigate(B); navigate(C); works 99.99% of times, but occasionally there'll be an exception where the nav controller hasn't had a chance to update its internal state and will throw a "you can navigate to C from A" exception.
Is this a jetpack compose navigation thing to solve, or is there a destinations way to safely do this?
Hi, hope this is an OK place for questions.
Say I open the app and want to bring the user to C but want to have A and B on the back stack so that the back key etc. Think resuming an onboarding flow or entering some other complex flow mid-way where you want the user to be able to go back and change stuff as if they nav'd there naturally this session:
Presently
navigate(A); navigate(B); navigate(C);works 99.99% of times, but occasionally there'll be an exception where the nav controller hasn't had a chance to update its internal state and will throw a "you can navigate to C from A" exception.Is this a jetpack compose navigation thing to solve, or is there a destinations way to safely do this?