Tlaster / PreCompose

Compose Multiplatform Navigation && State Management

Home Page:https://tlaster.github.io/PreCompose/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popback Stack with popUpTo

mikedawson opened this issue · comments

Hello,

I really, really like this library! I'm adapting our Jetpack Compose app to run on Android and Desktop, and this gave me the functionality needed on the desktop without a whole new learning curve and philosophy.

The one thing I'm missing is popBackStack with arguments to specify where to pop up to e.g. as per the Jetpack Navigation popBackStack.

In the meantime, I was able to workaround this by using an effect that keeps going back until it hits the intended target.

I looked at the code, it seems like the functionality that handles this for navigate could also be used for pop. Is this something that is in the works? Something where you would want a pull request?

Thanks again,

-Mike

Go back with pop up option was just added in recent release, but not documented yet and you can check the navigator's code

Thank you @Tlaster ! Will update and then I can remove the workaround.