State.Empty not recomposing #853
Unanswered
georgeBanno
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working with the Coil Composable today and have seen the following behavior. I'm sure there is a good reason for this that I'm missing. However, I've reviewed the code and can't really see why this is happening.
Whenever painter.state is compared to ImagePainter.State.Empty, like below, the composable never recomposes to show the image or the progress dialog. However if I remove the Empty state check the progress indicator displays and then the image is displayed. I'd love to know why this is.
This code will always show the text "Oops I'm Empty" .
This code will always first show the progress indicator and then the image when it loads.
Beta Was this translation helpful? Give feedback.
All reactions