https://kotlinlang.org logo
#compose
Title
# compose
l

Leandro Garcia

10/24/2023, 1:40 PM
Hi guys, I'm having an issue with a basictextfield, I have a
text
variable which is being updated as this
var text by remember { mutableStateOf(value) }
but the UI is not being updated, I put some logs and I see that the value of
text
is being changed. Any idea whats up?
h

hamzaTheDev

10/24/2023, 1:47 PM
You should set the value of the
BasicTextField
to the
text
state too. It's like a 2-way binding between the state and the composable.
l

Leandro Garcia

10/24/2023, 1:51 PM
I see, that was it! Thanks
🙂
h

hamzaTheDev

10/24/2023, 1:52 PM
You're welcome 🌹