https://kotlinlang.org logo
#compose
Title
# compose
s

ste

01/04/2022, 10:30 PM
I'm getting a
Compose Runtime internal error
with this basic snippet, only on release builds. Would you confirm there's nothing I'm missing so I can open an issue?
Copy code
@Composable
fun Main() {
    Bug(items = listOf(1, 2, 3)) {
        BasicText(text = it.toString())
    }
}

@Composable
inline fun <T> Bug(items: List<T>, crossinline content: @Composable (item: T) -> Unit) {
    for (item in items) content(item)
}
Nevermind, a similar issue is already here
3 Views