rophuine
06/01/2020, 11:53 PMjava.lang.IllegalStateException: Not in a frame
at androidx.compose.frames.FramesKt.currentFrame(Frames.kt:180)
W/System.err: at androidx.compose.frames.FramesKt.writable(Frames.kt:466)
at androidx.compose.frames.FramesKt._writable(Frames.kt:462)I'm completely new to Android dev - most of my mobile dev before has been using xplat frameworks like Xamarin and React Native. I've managed to update to dev12. I suspect the problem is related to not being on the UI thread, but being so new to Android dev in general, and there not being many examples out there because Compose is so new, my Google-fu is failing me. Coroutines keep coming up but I can't quite work out the api. Can someone point me in the right direction?
Leland Richardson [G]
06/01/2020, 11:56 PMLeland Richardson [G]
06/01/2020, 11:58 PMFrameManager.framed { myMutation() }
Leland Richardson [G]
06/01/2020, 11:59 PMrophuine
06/02/2020, 12:01 AMrophuine
06/02/2020, 12:04 AMVinay Gaba
06/08/2020, 3:37 AMrunOnUiThread
to avoid it like you recommended above.