Hello, I hope it's the correct channel to ask this...
# multiplatform
y
Hello, I hope it's the correct channel to ask this. I'm working with KMP Compose and the JB Navigation Library (Type safe) and facing an issue with
popUpTo
which doesn't pop anything from the Backstack. The navigation success but just adding it on top of the existing one. Any idea / Known bugs in this area?
c
Are you sure the screen that you are referencing in the
popUpTo
parameter is on the backstack?
From the source:
Copy code
if (foundDestination == null) {
            // We were passed a destinationId that doesn't exist on our back stack.
            // Better to ignore the popBackStack than accidentally popping the entire stack
If you try to popUpTo a destination that is not on the backstack currently, then you will have the exact behaviour you describe
y
I'm printing the back stack and it's there