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

galex

07/18/2020, 6:43 AM
In a Composable function, I could not just call
invoke()
on a reference of another Composable function, will that work someday?
m

Mark Murphy

07/18/2020, 11:35 AM
I have had a number of challenges in doing this. The Kotlin compiler plugin magic makes this difficult. FWIW, I filed https://issuetracker.google.com/issues/157590194 for the feature request.
a

Adam Powell

07/18/2020, 2:04 PM
foo.invoke()
as opposed to
foo()
not working is a bug, iirc. Reflection is a bigger question.
m

Mark Murphy

07/18/2020, 2:06 PM
Oh, yeah, sorry -- I misinterpreted the question. It's https://issuetracker.google.com/issues/149424759 instead. (though in truth I suspect that the scenarios are related, in that call patterns that bypass plugin expectations won't work)
👍 1
g

galex

07/19/2020, 4:49 AM
Cool, happy to see it's on the roadmap 😊