olshevski / compose-navigation-reimagined

🌈 Type-safe navigation library for Jetpack Compose
https://olshevski.github.io/compose-navigation-reimagined/
MIT License
545 stars 18 forks source link

How to intercept navigation, such as the target page requiring login to access #37

Closed Kuki93 closed 4 months ago

olshevski commented 4 months ago

@Kuki93 Not sure if I understand the case. If a user is not logged in, navigate to the login screen instead of going to the target page. It's your business logic that controls the navigation, so you can check the login state before doing the navigation. No need to intercept anything. Can you please provide more details about your use-case?

Kuki93 commented 4 months ago

thanks, I have already solved the problem。