šÆAndroid Dev Challenge No. 5: DisposableEffect šļø
- Nikolay Miroshnychenko

- Dec 22, 2023
- 1 min read

This week, we'll continue with Jetpack Compose. I decided to dive a little deeper into more advanced concepts. More specifically - DisposableEffect šļø.
I tried hard to make this one "challenging" and interesting. But frankly, there's only so much "challenge" you can have with DisposableEffect š„²
Therefore, I decided to spice š¶ļø things up slightly by throwing in a LaunchedEffect and some UI elements.
š Challenge details:
- Take a look at the image. This code has a bug. Can you identify where it is?
- This code is violating some Jetpack Compose best practices. How would you optimize it?
Give it a good thought š§ .
šĀ After that:
- Post your answers in the comments below. š¬
- Explain your reasoning. šļø
- Feel free to discuss and debate! š„
š An answer with an explanation will be posted in 48 hours.
Unlike other challenges I've posted, this one isn't "black and white". There are multiple ways to organize this code. So, feel free to express yourself.
Looking forward to seeing your solutions and discussions in the comments! š






Comments