Chris Johnson
06/14/2021, 4:27 PMDisposableEffect(Unit) {
focusRequester.requestFocus()
onDispose { }
}
tad
06/14/2021, 5:06 PMLaunchedEffect
?Chris Johnson
06/14/2021, 5:15 PMrequestFocus()
isn't a suspend function so I don't think it would make a difference, but I'll try it anyways since I'm out of ideas 😅Chris Johnson
06/14/2021, 5:27 PMtad
06/14/2021, 5:29 PMLaunchedEffect
dispatches on the composable's coroutine scope, it wouldn't dispatch immediately and the layout would have time to be set up before the focus event makes it throughChris Johnson
06/14/2021, 5:33 PMChris Johnson
06/14/2021, 6:12 PMtad
06/14/2021, 6:13 PMAlbert Chang
06/15/2021, 12:23 AMDisposableEffect
and `LaunchedEffect`: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1622560036078600?thread_ts=1622556885.065600&cid=CJLTWPH7S