Mark
04/03/2024, 7:08 AMonReady()
) to the dialog composable. The dialog composable will not emit any UI until this is called. The caller can show what it likes (e.g. indeterminate progress spinner) in the meantime
2️⃣ Change the API such that instead of a composable, the dialog is represented by a suspending function that returns a composable (e.g. suspend fun showDialog(…): @Composable () -> Unit)
). An advantage here is that there is no danger of forgetting to call onReady()
3️⃣ Too much logic in UI code, so shift the work to a view model which would be responsible for creating dialog UiState
Something else?Zach Klippenstein (he/him) [MOD]
04/03/2024, 11:26 AMMark
04/03/2024, 2:45 PMZach Klippenstein (he/him) [MOD]
04/03/2024, 10:36 PMMark
04/04/2024, 6:00 AM