It's the opposite. Your click event lambda is not a composable and therefore doesn't have access to the composition local. You are accessing the composition local from a composable in your example
👍🏻 1
c
Colton Idle
12/08/2021, 6:47 AM
ah. okay. visually it looks like im in my composable, but im not actually. it was all an illusion. cheers
s
Stylianos Gakis
12/08/2021, 4:41 PM
Random trivia: If clickEvent was an inline function this would be possible since it’d consider itself to be inside the scope of your composable function