Be Careful! This Navigation Logic Causes an Unexpected Behavior in your App!⚠️

  Рет қаралды 4,832

Stevdza-San

Stevdza-San

6 ай бұрын

🏆 My Online Courses
stevdza-san.com
☕ Let's get a coffee. You're paying! :)
ko-fi.com/stevdza_san
💻 Github
github.com/stevdza-san
📸 Instagram
/ stevdza_san

Пікірлер: 33
@DaumasDev
@DaumasDev 6 ай бұрын
This should be included natively in the next version of Compose navigation 😅😅
@jaelsonwagner
@jaelsonwagner 4 ай бұрын
Great tip, my friend. Thanks for sharing.
@bhaskarkaura4507
@bhaskarkaura4507 6 ай бұрын
Simple and clear, Thanks!!
@swiszcz93
@swiszcz93 6 ай бұрын
awesome, thanks for the tip!
@jackeblan
@jackeblan 5 ай бұрын
Thanks. I also experienced this before. Good point
@sooshil
@sooshil 6 ай бұрын
Awesome. Already faced an issue with it. Thanks.
@ALEXPERTOS.
@ALEXPERTOS. 6 ай бұрын
What a coincidence! My app was doing the exact same thing and I didn't know why, thanks
@Alchemist10241
@Alchemist10241 6 ай бұрын
me too, I couldn't find the reason so I marked it as bug and postponed it, I can't believe the solution is this simple. thanks Steve
@samuelwakoli
@samuelwakoli 6 ай бұрын
I have really learnt from this. I had this issue on a slow device. Thank you for sharing
@StevdzaSan
@StevdzaSan 6 ай бұрын
Anytime!
@KingFuYouTube
@KingFuYouTube 6 ай бұрын
great tip!
@unknownBoy85lover
@unknownBoy85lover 6 ай бұрын
Thank you sir ❤
@lechixy
@lechixy 6 ай бұрын
thank you so much dude
@conceptcoder
@conceptcoder 6 ай бұрын
So jetpack compose isn't stable yet?
@DaumasDev
@DaumasDev 6 ай бұрын
Anything in this world isn't stable. The nature of the things is the caos 🤣🤣
@mikelantzelo
@mikelantzelo 6 ай бұрын
Facing this problem could not find a solution!!! Thank you!!!
@ubersticks
@ubersticks 6 ай бұрын
My first response was "no way, that can't be correct" -- but it sure seems you are right! I am surprised at this find and your fix seems solid (especially liking the extension function). I wonder if this debouncing need is mainly on the emulator since it is so much slower than real HW....
@StevdzaSan
@StevdzaSan 6 ай бұрын
Probably there's a higher chance on emulator, but still it can happen on a real device as well.
@MrMorffey
@MrMorffey 6 ай бұрын
Wow, thx. I had that bug too. But i fixed it with delay and button property enabled
@henrik908
@henrik908 6 ай бұрын
Open cv with android Jetpack compose and kotlin is it possible?
@alskaa1
@alskaa1 6 ай бұрын
I have the same issue with multiple navigate() and I solved it by check current route != next destination. But I don't know how to do it with popBackStack(). Thank you. Very useful.
@StevdzaSan
@StevdzaSan 6 ай бұрын
Glad to help!
@arozendojr
@arozendojr 6 ай бұрын
How to show WebView in compose multi platform app for android & iOS
@szpitor
@szpitor 6 ай бұрын
I have something similar I have screen 1 where I can input text and show that on screen . My screen 2 has check boxes both of them has been stored in viewmodel using uiState no livedata or room ... So very weird behaviour. I can input text in screen 1 navigate to screen 2 . Screen 2 has 2 options to go back to screen 1 with TopBar arrow using navigate to screen 1 and the back button on the phone. When I use the TopBar arrow the text disappears from screen one but the back button using popBackstack hold the text on screen1...
@abdulhafeezandroiddeveloper
@abdulhafeezandroiddeveloper 3 ай бұрын
yes i also facing this issue
@koweratus
@koweratus 6 ай бұрын
This can happen with anything thats clickable, so the better solution imo is to add multiple click handler thay way user cant press more than once.
@gofudgeyourselves9024
@gofudgeyourselves9024 6 ай бұрын
Cool
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 20 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 20 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 16 МЛН
40 APIs Every Developer Should Use (in 12 minutes)
12:23
Coding with Lewis
Рет қаралды 335 М.
Bottom Nav Bar #03 | Material 3 | Jetpack Compose
12:21
Compose Campus | Code-Along
Рет қаралды 9 М.
This Is My FAVORITE Error Handling Class
28:57
Philipp Lackner
Рет қаралды 28 М.
You are using useFetch WRONG! (I hope you don't)
11:14
Alexander Lichter
Рет қаралды 24 М.
I use Drag and Drop to build modern Python Apps
14:08
Softlinks
Рет қаралды 62 М.
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 967 М.
Doing This Instead Of Studying.. 😳
00:12
Jojo Sim
Рет қаралды 20 МЛН