It's weird. I installed a
window.onerror
listener and added this fake crash:
TextInput(name, onTextChanged = { name = it; error("onTextChanged") })
and that got handled.
Then, in the same page, I added a LaunchedEffect crash:
...
LaunchedEffect(Unit) { error("LaunchedEffect") }
var name by remember { mutableStateOf("") }
TextInput(name, onTextChanged = { name = it; error("onTextChanged") })
...
and in that case, both crashes were uncaught and NOT handled by
window.onerror
. I don't know what's going on.