šÆš§āš» Android Dev Challenge No. 6: What's the third approach?
- Nikolay Miroshnychenko

- Jan 7, 2024
- 1 min read
In our 6th challenge, we'll look into some more Jetpack Compose APIs. This one tests your knowledge of some "exotic" š“ Jetpack Compose concepts.
š Challenge details:
- The code is straightforward - we're fetching a UserProfile that is relevant only to this Composable and displaying a loading progress bar while we wait.
- I've listed 2 approaches to doing this using Jetpack Compose and Jetpack concepts.
- Can you think of a third solution? Or the fourth one, for that matter?
So here is the code:



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.
Hint - the solution here implies the use of a specific Jetpack Compose API (not DisposableEffect and not rememberCoroutineScope - those were in the previous challenges).
But! Feel free to post your own approach that is also applicable.
Looking forward to seeing your solutions and discussions in the comments! š






Comments