Hi! launchInComposition this is called only one time due to the remember, but what happens if I want to call it more than one time?
For example:
Copy code
var text by state { "empty" }
var result by state { "" }
launchInComposition { result = getData(text) }
FilledTextField(
value = text,
onValueChange = { text = it },
label = { Text("Label") }
)
carbaj0
05/30/2020, 10:14 AM
it makes sense because otherwise, I start a loop in this case, but which would be the best approach?
carbaj0
05/30/2020, 10:35 AM
Copy code
launchInComposition(text) { result = getData(text) }