Compose screen not recompositioning after state change
I have a ViewModel with a stateFlow. Everytime that a button is clicked, I'm changing the value to the state but, for some reason, the screen is not reacting to that change.
I know that the state's value does change because when I turn the screen and there's a complete recomposition, it shows what it should show with the value changed, but only after turning the screen. I want the change on the screen without turning the screen.
This is my viewModel
@HiltViewModel
class CragToposViewModel...