I have a list of artists with their profile image ...
# compose
s
I have a list of artists with their profile image that needs to be displayed. What is the proper way to recompose the view such that; loading of profile image starts only after the artist's info are displayed on screen? Here I've implemented such that Picasso updates the image state after the image is loaded. This only works after the image is cached.
Copy code
val image = state<Image?> { null }
prepareImage(ambient(key = ContextAmbient), url = it.picture_small, state = image)
image.value?.let {
    DrawImage(image = it)
}