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

Bryan Lee

12/23/2019, 10:56 PM
Is it intended behavior to not be able to call a composable function from Clickable(onClick={ ComposableFoo() }){...}? I get the "Composition requires active composition context" error if I try to do this.
👌 2
l

Leland Richardson [G]

12/24/2019, 12:00 AM
yes, this is correct. onClick is in an event, and it gets called outside of “composition”, so calling a ComposableFoo is meaningless there
b

Bryan Lee

12/24/2019, 12:20 AM
ah okay, thanks!