I got this runtime error: `androidx.compose.runtim...
# compose
m
I got this runtime error:
androidx.compose.runtime.ComposeRuntimeError: Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (Missed recording an endGroup).
and discovered that by switching
for (item in items) {
to
items.forEach { item ->
it fixed the error. Note: I’m just iterating over enum
values()
for the content of a
Column
, if that’s important. I couldn’t find any other reports or documentation about this, which I find very odd.
I see this issue: https://issuetracker.google.com/issues/200302933 which uses
LazyVerticalGrid
which internally uses a for loop. But I find it almost impossible to believe a simple for loop can be causing this.