@Composable
fun First(modifier: Modifier = Modifier) {
@Composable
fun Second(modifier: Modifier = Modifier) {
//...
}
Second()
}
I know this is ok with normal function, but with composable, could it introduce some performance issues? With normal functions, an anonymous object with an invoke method is created for those local functions, as far as i know. Does the same happen with composables?
m
marlonlom
08/16/2024, 6:13 PM
Mm, try using it like this:
Copy code
val innerComposable: @Composable () -> Unit = { //... }