i can't find any info online about this, but i was wondering: is there any gotchas with using a local composable function defined in a composable function (since they get called a lot)?
Copy code
@Composable
fun Component() {
Box {
...
@Composable
fun item(...) {
}
item(...)
item(...)
item(...)
}
}
a
Alejandro Rios
05/31/2024, 11:17 PM
maybe something related with
recomposition
but I'm not sure, to me it just feels weird, i would prefer to have
item
as a component
b
bj0
06/03/2024, 8:24 PM
it basically is a component, its just defined locally, which does seem weird but i'm use to defining local functions that only get used locally