Navigation Mistake In Jetpack Compose
Вставка
- Опубліковано 5 тра 2024
- In this video, you'll learn about how to not make an often encountered navigation mistake in Jetpack Compose
Let's connect 🤗:
/ daniel-atitienei
Blog: / daniel.atitienei
Do you like my content? Here you can buy me a coffee ☕:
www.buymeacoffee.com/danielat... - Навчання та стиль
Useful tip.
Glad it was helpful!
@@daniel.atitienei Same can be used while navigating to other screen also.
in this case, why you won’t use navigateUp() instead of popBackStack() for Back button?
simple solution, isn’t it ?
Then you won't be watching this video if he did that! Lol
Didn't know about that 😅
How does it differ from launchSingleTop in navigation from screen 1 to screen 2 if we press screen 1 button multiple times?
I think it will open only once the screen 2, but if you navigate back by pressing multiple times it should have the same behaviour.
I'm pretty sure navigation has something called popUpTo and popUpToInclusive that resolves the matter no ?
No because that is used when you navigate to a next screen to remove the previous one from back stack.