https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
j

Javier

02/11/2023, 6:31 PM
Has someone see this issue with Molecule? I am just playing with it a jvm project. I have tried to use
suspend main
creating a scope and I have tried to use
runBlocking
too.
Copy code
A MonotonicFrameClock is not available in this CoroutineContext. Callers should supply an appropriate MonotonicFrameClock using withContext.
👍 1
I moved to
RecompositionClock._Immediate_
and it "works". I am seeing weird values, I am going to do some tests
k

kevin.cianfarini

02/11/2023, 6:50 PM
Outside of something that is some way tied to the UI, the
Immediate
clock is the only option you have.
j

jw

02/12/2023, 12:39 AM
You can make your own clock. It may be reasonable for a data layer to never emit more than once per second, for example.
7 Views