carbaj0
05/30/2020, 9:51 AMvar text by state { "empty" }
var result by state { "" }
launchInComposition { result = getData(text) }
FilledTextField(
value = text,
onValueChange = { text = it },
label = { Text("Label") }
)
launchInComposition(text) { result = getData(text) }
very similar to useEffect in React, isn't it?Adam Powell
05/30/2020, 1:31 PMremember
itself and onCommit