Describe the problem
In above mentioned step of codelab, within the "note:" block, second paragraph is stated as below.
When the user enters text into the text field, the onValueChange lambda callback is called, the lambda executes, and the amountInput.value is set to the updated value entered in the text field.
But, by the time the discussion reached this note section, the type of the amountInput variable is changed from mutableStateOf to remember. At least that is my understanding. Therefore, from my understanding I believe that amountInput should be used instead of amountInput.value. And also android studio threw error Unresolved reference: value.
URL of codelab Intro to state in Compose
In which task and step of the codelab can this issue be found? Use remember function to save state
Describe the problem In above mentioned step of codelab, within the "note:" block, second paragraph is stated as below.
But, by the time the discussion reached this note section, the type of the
amountInput
variable is changed frommutableStateOf
toremember
. At least that is my understanding. Therefore, from my understanding I believe thatamountInput
should be used instead ofamountInput.value
. And also android studio threw errorUnresolved reference: value
.