karandeep singh
05/03/2020, 7:26 PM@Composable
fun SomeComposableFunction() {
val t = animatedFloat(0f)
Canvas(modifier = Modifier.fillMaxWidth()) {
// this gives error during compile/build
onActive {
}
//Can't do this as well
val someValue = remember {
}
}
}
is this expected behaviour? we can't access Composables inside lambda's which are in turn inside some composable?Adam Powell
05/03/2020, 7:29 PMsuspend
function from a non-suspending lambda block passed to a function call inside a suspending function.karandeep singh
05/03/2020, 7:30 PMAdam Powell
05/03/2020, 7:30 PMfooScope.launch {
view.setOnClickListener {
something.await() // error
}
}
something.apply { }