Join Slack
Powered by
Why does molecule do not find the MonotonicFrameCl...
# squarelibraries
h
hfhbd
11/09/2022, 2:53 PM
Why does molecule do not find the MonotonicFrameClock on Compose web (html dom api)? I playing with molecule and on android this frame sync works nice, but compose web fails with an exception. I thought this frame clock is mandatory for compose runtime. And the dom render uses DefaultMonotonicFrameClock 🤔
https://github.com/JetBrains/compose-jb/blob/685e305c5ee62bfd1c6c004163a2cd80c6017c98/web/internal-web-core-runtime/src/jsMain/kotlin/org/jetbrains/compose/web/renderComposable.kt#L40
Edit: found a workaround, adding the DefaultMonotonicFrameClock manually to the coroutine Scope on JS
58
Views
Open in Slack
Previous
Next