adrielcafe / voyager

🛸 A pragmatic navigation library for Jetpack Compose
https://voyager.adriel.cafe
MIT License
2.31k stars 109 forks source link

How to clear all previous screen #295

Closed BlueSky15171 closed 4 months ago

BlueSky15171 commented 4 months ago

My logic is: splashScreen -> homeScreen -> press back -> android launcher is actually: splashScreen -> homeScreen -> press back -> splashScreen

android press return will return to splashScreen , what do I need to do, when starting homeScreen, there is only homeScreen in the stack

Syer10 commented 4 months ago

LocalNavigator.currentOrThrow.replaceAll(NewRootScreen())