Join Slack
Communities
Powered by
I found Navigation Compose buggy when i will try ...
# compose
s
Shakil Karim
04/17/2021, 11:22 AM
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
Ian Lake
04/17/2021, 1:17 PM
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
Ian Lake
04/17/2021, 1:17 PM
tl/dr: you shouldn't ever be doing this
👍 1
s
Shakil Karim
04/18/2021, 7:03 PM
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
Ian Lake
04/18/2021, 7:04 PM
No, absolutely not, as per that thread I linked
🤔 1
7
Views
Open in Slack
Previous
Next