Why is my size variable not updating correctly in Jetpack Compose?
I’m learning Jetpack Compose and created a simple example to understand state management. I have a button that updates a width
variable, and I want to calculate a size
based on the width
and height
variables. However, the size
variable is not updating as expected when width
changes.
What is the proper way of communicating between viewModel and UI composable to avoid concurrent change error?
In my project from time to time I have error "Unsupported concurrent change during composition"
-> This is probably caused by updating a State object from different threads at the same time.
I’m trying to figure it out why this could happen.
unexpected behaviour of flowrow in jetpackcompose
I have a screen in which users can see recommendations saved by them from different categories with filter buttons above implemented with the help of FlowRow: