I found Navigation Compose buggy when i will try ...
# compose
s
I found Navigation Compose buggy when i will try to pop the whole stack but it works sometimes. I wish, there is method for clearing the complete back stack, popUpTo is very confusing
i
I'd suggest reading this previous thread, where we talked about popping the entire stack: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1617806763346700?thread_ts=1617805109.343700&cid=CJLTWPH7S
tl/dr: you shouldn't ever be doing this
👍 1
s
Thanks, @Ian Lake But still not sure why PopUpTo is not working, Is this the valid approach to create a separate Composable as starting Destination for checking which screen to launch based on Auth Status? https://github.com/shakil807g/ScopicTest/blob/master/app/src/main/java/com/shakil/scopictask/MainActivity.kt
i
No, absolutely not, as per that thread I linked
🤔 1