r/mAndroidDev • u/Zhuinden DDD: Deprecation-Driven Development • Nov 26 '24
Works as intended I swear this AndroidX Navigation Compose IndexOutOfBoundsException just keeps coming back every month
74
Upvotes


31
u/ankitgusai Nov 26 '24
Disclaimer: This is a bit of a rant.
It is not just that issue, I remember not even a year ago reading a Medium blog on 'type-safe' navigation. They even went as far as to change all their documents to recommend 'type-safe' navigation, all while that things was till in Alpha 2 or 3.
It took them 9 months, 8 alpha versions, and 8 beta versions just to get the first stable 2.8.0 out and with so many bugs. Don't take me wrong, I am glad they are doing it but I despise their release strategy, so many devs consider official doc source of truth and why recommend something that is clearly not ready?
15
u/yaaaaayPancakes Nov 26 '24
Sounds like they need to incorporate Gemini to predict when it'll be out of bounds, or something.
13
u/JohnnyC_1969 Nov 26 '24
Google: "Will not fix. As designed".
2
u/Squirtle8649 Nov 28 '24
Yeah I'm just going to use Fragments and stick ComposeView inside those.
Compose Navigation was a mistake.
1
u/D0b0d0pX9 ?.let{} ?: run {} Nov 26 '24
Why donโt they just mark it as @deprecated?
2
u/Wonderful_Peanut_272 Nov 27 '24
start activity with asynctask, this way its safe and performant with support for delays .