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

KamilH

11/10/2020, 6:23 PM
How is the “Composer” object passed to
Composable
functions? I went through “Under the hood of Jetpack Compose” recently and I saw it mentions that calling context is getting passed to
Composable
functions. I thought it’s done similarly to
suspend
functions, so when I decompile
Composable
function I will see something similar to
Continuation
object, but nothing like that is there. I know Compose works also in the phase of code generation during compilation, so is it possible to see generated code?
r

romainguy

11/10/2020, 6:58 PM
Compose generates code at the IR level, what it does is visible in the final bytecode
12 Views