https://kotlinlang.org logo
#compose
Title
# compose
m

mon

02/13/2020, 7:31 AM
Is it not possible to read from a
@Model
var outside a
@Composable
?
a

Adam Powell

02/13/2020, 1:38 PM
It is possible. At the moment either you must read/write on the main thread or use some of the tools in
Frames.kt
to set things up to manipulate
@Model
objects on other threads but we plan to make this much easier
👍 1
m

mon

02/14/2020, 2:50 AM
I wonder why this fails then. The last line in the trace corresponds to line 8 here
a

Adam Powell

02/14/2020, 2:55 AM
the FrameManager gets set up after you call setContent with your composable for the first time
this stuff is going to get easier 🙂
✔️ 1
m

mon

02/14/2020, 2:59 AM
Nice, thank you. That works
👍 1